talawa-api / Exports / resolvers/Mutation/leaveOrganization
Module: resolvers/Mutation/leaveOrganization
Table of contents
Variables
Variables
leaveOrganization
• Const
leaveOrganization: MutationResolvers
["leaveOrganization"
]
This function enables to leave 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 exists
- If the user is the creator of the organization
- If the user is a member of the organization