Skip to main content

talawa-api / Exports / resolvers/Mutation/removePost

Module: resolvers/Mutation/removePost

Table of contents

Variables

Variables

removePost

Const removePost: MutationResolvers["removePost"]

This function enables to remove a post.

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 post exists
  3. If the user is the creator of the post.
  4. If the user to be removed is a member of the organization.

Defined in

src/resolvers/Mutation/removePost.ts:28