mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
- in the first instance, we will be importing posts/comments from the alpha, so to maintain consistency, we've ordered them alike. In the future, we could support user choice of order. - Gives more space for HcCommentForm, user can see comments added to list, helps with mobile responsiveness Co-authored-by: Tirokk <wolle.huss@pjannto.com> Co-authored-by: Mike Aono <aonomike@gmail.com>
14 lines
220 B
JavaScript
14 lines
220 B
JavaScript
import gql from 'graphql-tag'
|
|
|
|
export default app => {
|
|
return gql(`
|
|
query CommentByPost($postId: ID!) {
|
|
CommentByPost(postId: $postId) {
|
|
id
|
|
contentExcerpt
|
|
createdAt
|
|
}
|
|
}
|
|
`)
|
|
}
|