mirror of
https://github.com/vale981/Vulcan
synced 2025-03-11 13:06:41 -04:00
40 lines
652 B
JavaScript
40 lines
652 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
|
|
#upvoters {
|
|
# _id
|
|
#}
|
|
#downvoters {
|
|
# _id
|
|
#}
|
|
#upvotes
|
|
#downvotes
|
|
#baseScore
|
|
#score
|
|
}
|
|
`);
|