mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-03-23 18:55:29 +00:00
36 lines
642 B
JavaScript
36 lines
642 B
JavaScript
import gql from 'graphql-tag'
|
|
import { imageUrls } from './fragments/imageUrls'
|
|
|
|
export default () => {
|
|
return gql`
|
|
${imageUrls}
|
|
|
|
query Comment($postId: ID) {
|
|
Comment(postId: $postId) {
|
|
id
|
|
contentExcerpt
|
|
createdAt
|
|
author {
|
|
id
|
|
slug
|
|
name
|
|
avatar {
|
|
...imageUrls
|
|
}
|
|
disabled
|
|
deleted
|
|
shoutedCount
|
|
contributionsCount
|
|
commentedCount
|
|
followedByCount
|
|
followedByCurrentUser
|
|
badgeTrophies {
|
|
id
|
|
icon
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`
|
|
}
|