Ocelot-Social/webapp/graphql/CommentQuery.js
2019-04-23 12:24:27 -03:00

14 lines
247 B
JavaScript

import gql from 'graphql-tag'
export default app => {
return gql(`
query CommentByPost($postId: ID!) {
CommentByPost(postId: $postId, orderBy: createdAt_desc) {
id
contentExcerpt
createdAt
}
}
`)
}