Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 886 Bytes

resolvers_Mutation_rejectAdmin.md

File metadata and controls

41 lines (22 loc) · 886 Bytes

talawa-api / Exports / resolvers/Mutation/rejectAdmin

Module: resolvers/Mutation/rejectAdmin

Table of contents

Variables

Variables

rejectAdmin

Const rejectAdmin: MutationResolvers["rejectAdmin"]

This function enables to reject 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 user is the SUPERADMIN of the organization.
  3. If the user to be removed exists.

Defined in

src/resolvers/Mutation/rejectAdmin.ts:17