Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 825 Bytes

resolvers_Mutation_likePost.md

File metadata and controls

40 lines (22 loc) · 825 Bytes

talawa-api / Exports / resolvers/Mutation/likePost

Module: resolvers/Mutation/likePost

Table of contents

Variables

Variables

likePost

Const likePost: MutationResolvers["likePost"]

This function enables to like 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 has already liked the post.

Defined in

src/resolvers/Mutation/likePost.ts:18