talawa-api / Exports / resolvers/Mutation/rejectMembershipRequest
• Const
rejectMembershipRequest: MutationResolvers
["rejectMembershipRequest"
]
This function enables to reject membership request.
Param
parent of current request
Param
payload provided with the request
Param
context of entire application
Remarks
The following checks are done:
- If the membership request exists.
- If the organization exists.
- If the user to be rejected exists.
- If the user is the admin of the organization.