Skip to main content

talawa-api / Exports / resolvers/Mutation/blockUser

Module: resolvers/Mutation/blockUser

Table of contents

Variables

Variables

blockUser

Const blockUser: MutationResolvers["blockUser"]

This function enables blocking a user.

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 user exists
  3. If the user is an admin of organization
  4. If the user to be blocked is already blocked by the organization

Defined in

src/resolvers/Mutation/blockUser.ts:28