Skip to main content

removeOrganizationCustomField

talawa-apiDocs


talawa-api / resolvers/Mutation/removeOrganizationCustomField / removeOrganizationCustomField

Variable: removeOrganizationCustomField

> const removeOrganizationCustomField: MutationResolvers["removeOrganizationCustomField"]

This function enables an admin to remove 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:

  1. If the user exists
  2. If the organization exists.
  3. If the user is an admin for the organization.
  4. If the custom field to be removed exists
  5. If the user has appUserProfile

Defined in

src/resolvers/Mutation/removeOrganizationCustomField.ts:36