Skip to main content

addLike method

String addLike ()

Add Like to a post.

params: None

returns:

  • String: The query related to addingLike

Implementation

String addLike() {
return """
mutation likePost(\$postID: ID!) {
likePost( id: \$postID,)
{
_id
}
}
""";
}