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:
- Checks whether current user making the request is an superAdmin or an Admin.
- If the organization exists
- Checks whether curent user exists.
- Checks whether current user has appProfile.
- Checks whether user with _id === args.input.userId is already an member of organization..