mirror of
https://github.com/vale981/Vulcan
synced 2025-03-11 13:06:41 -04:00
31 lines
528 B
JavaScript
31 lines
528 B
JavaScript
![]() |
import { registerFragment } from 'meteor/vulcan:core';
|
||
|
|
||
|
// ----------------------------- Comments ------------------------------ //
|
||
|
|
||
|
registerFragment(`
|
||
|
fragment CommentsList on Comment {
|
||
|
# vulcan:comments
|
||
|
_id
|
||
|
postId
|
||
|
parentCommentId
|
||
|
topLevelCommentId
|
||
|
body
|
||
|
htmlBody
|
||
|
postedAt
|
||
|
# vulcan:users
|
||
|
userId
|
||
|
user {
|
||
|
...UsersMinimumInfo
|
||
|
}
|
||
|
# vulcan:posts
|
||
|
post {
|
||
|
_id
|
||
|
commentCount
|
||
|
commenters {
|
||
|
...UsersMinimumInfo
|
||
|
}
|
||
|
}
|
||
|
# vulcan:voting
|
||
|
}
|
||
|
`);
|