talawa-api / Exports / resolvers/Mutation/assignUserTag
Module: resolvers/Mutation/assignUserTag
Table of contents
Variables
Variables
assignUserTag
• Const
assignUserTag: MutationResolvers
["assignUserTag"
]
This function enables an admin to assign tag to user or not.
Param
parent of current request
Param
payload provided with the request
Param
context of entire application
Remarks
The following checks are done:
- If the user exists.
- If the user has appProfile.
- If the tag object exists.
- If the user is an admin for the organization.
- If the user to be assigned the tag exists.
- If the user to be assigned the tag belongs to the tag's organization.
- If the user already has the tag.