talawa-api / Exports / resolvers/Mutation/createAdmin
Module: resolvers/Mutation/createAdmin
Table of contents
Variables
Variables
createAdmin
• Const
createAdmin: MutationResolvers
["createAdmin"
]
This function enables to create an admin for an organization.
Param
parent of current request
Param
payload provided with the request
Param
context of entire application
Remarks
The following checks are done:
- If the organization exists
- If the user has appUserProfile
- If the current user is the creator of the organization
- If the user exists
- If the user is a member of the organization
- If the user is already an admin of the organization