Vulcan/packages/example-forum/lib/modules/comments/fragments.js

37 lines
596 B
JavaScript
Raw Normal View History

2017-09-04 19:56:33 +09:00
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
}
}
2017-10-21 12:49:16 +09:00
# voting
currentUserVotes{
...VoteFragment
}
baseScore
score
2017-09-04 19:56:33 +09:00
}
`);
2017-10-21 12:49:16 +09:00