talawa-api / Exports / resolvers/Mutation/addOrganizationCustomField
Module: resolvers/Mutation/addOrganizationCustomField
Table of contents
Variables
Variables
addOrganizationCustomField
• Const
addOrganizationCustomField: MutationResolvers
["addOrganizationCustomField"
]
This function enables an admin to add an organization colleciton field.
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 organization exists.
- If the user is an admin for the organization.
- If the required name and value was provided for the new custom field