talawa-api / Exports / resolvers/Mutation/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
- If the organization exists
- Checks whether curent user exists.
- Checks whether user with _id === args.input.userId is already an member of organization..