likePost
talawa-api • Docs
talawa-api / resolvers/Mutation/likePost / likePost
Variable: 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:
- If the user exists
- If the post exists
- If the user has already liked the post.