Skip to main content

talawa-api / Exports / resolvers/middleware/currentUserExists

Module: resolvers/middleware/currentUserExists

Table of contents

Functions

Functions

currentUserExists

currentUserExists(): (next: (root: any, args: any, context: any, info: any) => any) => (root: any, args: any, context: { userId: any }, info: any) => Promise<any>

Returns

fn

▸ (next): (root: any, args: any, context: { userId: any }, info: any) => Promise<any>

Parameters
NameType
next(root: any, args: any, context: any, info: any) => any
Returns

fn

▸ (root, args, context, info): Promise<any>

Parameters
NameType
rootany
argsany
contextObject
context.userIdany
infoany
Returns

Promise<any>

Defined in

src/resolvers/middleware/currentUserExists.ts:9