Skip to main content

getPostsComments method

String getPostsComments (String postId)

Implementation

String getPostsComments(String postId) \{
return """
query\{
commentsByPost(id: "$postId")\{
_id
text
createdAt
creator\{
firstName
lastName
\}
\}
\}
""";
\}