talawa-api / Exports / resolvers/Mutation/addUserToGroupChat
Module: resolvers/Mutation/addUserToGroupChat
Table of contents
Variables
Variables
addUserToGroupChat
• Const
addUserToGroupChat: MutationResolvers
["addUserToGroupChat"
]
This function adds user to group chat.
Param
parent of current request
Param
payload provided with the request
Param
context of entire application
Remarks
The following checks are done:
- If the group chat exists
- If the organization exists
- If the user trying to add the user is an admin of organization
- If the user exists
- If the user is already a member of the chat