mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
49 lines
No EOL
835 B
JavaScript
49 lines
No EOL
835 B
JavaScript
import gql from 'graphql-tag';
|
|
|
|
const fragments = {
|
|
|
|
list: {
|
|
name: 'commentsListFragment',
|
|
fragment: gql`
|
|
fragment commentsListFragment on Comment {
|
|
_id
|
|
postId
|
|
parentCommentId
|
|
topLevelCommentId
|
|
body
|
|
htmlBody
|
|
postedAt
|
|
user {
|
|
_id
|
|
__displayName
|
|
__emailHash
|
|
__slug
|
|
}
|
|
}
|
|
`,
|
|
},
|
|
|
|
// not really needed 🤔
|
|
single: {
|
|
name: 'commentsSingleFragment',
|
|
fragment: gql`
|
|
fragment commentsSingleFragment on Comment {
|
|
_id
|
|
postId
|
|
parentCommentId
|
|
topLevelCommentId
|
|
body
|
|
htmlBody
|
|
postedAt
|
|
user {
|
|
_id
|
|
__displayName
|
|
__emailHash
|
|
__slug
|
|
}
|
|
}
|
|
`,
|
|
},
|
|
};
|
|
|
|
export default fragments; |