Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 1005 Bytes

resolvers_Mutation_createAdmin.md

File metadata and controls

43 lines (24 loc) · 1005 Bytes

talawa-api / Exports / resolvers/Mutation/createAdmin

Module: resolvers/Mutation/createAdmin

Table of contents

Variables

Variables

createAdmin

Const createAdmin: MutationResolvers["createAdmin"]

This function enables to create an admin for an organization.

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 organization exists
  2. If the current user is the creator of the organization
  3. If the user exists
  4. If the user is a member of the organization
  5. If the user is already an admin of the organization

Defined in

src/resolvers/Mutation/createAdmin.ts:27