Skip to main content

talawa-api / Exports / resolvers/Mutation/createMember

Module: resolvers/Mutation/createMember

Table of contents

Variables

Variables

createMember

Const createMember: MutationResolvers["createMember"]

This function enables to add a member.

Param

parent of current request

Param

payload provided with the request

Param

context of entire application

Remarks

The following checks are done:

  1. Checks whether current user making the request is an superAdmin or an Admin.
  2. If the organization exists
  3. Checks whether curent user exists.
  4. Checks whether current user has appProfile.
  5. Checks whether user with _id === args.input.userId is already an member of organization..

Defined in

src/resolvers/Mutation/createMember.ts:37