mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
36 lines
596 B
JavaScript
36 lines
596 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
|
|
}
|
|
}
|
|
# voting
|
|
currentUserVotes{
|
|
...VoteFragment
|
|
}
|
|
baseScore
|
|
score
|
|
}
|
|
`);
|
|
|