Skip to main content

talawa-api / Exports / resolvers/Mutation/removeAdmin

Module: resolvers/Mutation/removeAdmin

Table of contents

Variables

Variables

removeAdmin

Const removeAdmin: MutationResolvers["removeAdmin"]

This function enables to remove an admin.

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 to be removed is an admin.
  4. If the user removing the admin is the creator of the organization

Defined in

src/resolvers/Mutation/removeAdmin.ts:26