Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 856 Bytes

resolvers_Mutation_likeComment.md

File metadata and controls

41 lines (22 loc) · 856 Bytes

talawa-api / Exports / resolvers/Mutation/likeComment

Module: resolvers/Mutation/likeComment

Table of contents

Variables

Variables

likeComment

Const likeComment: MutationResolvers["likeComment"]

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/likeComment.ts:18