mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
49 lines
835 B
JavaScript
49 lines
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;
|