Table of contents
This function enables to add a member.
parent of current request
payload provided with the request
context of entire application
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..