mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00
25 lines
436 B
JavaScript
25 lines
436 B
JavaScript
import Telescope from 'meteor/nova:lib';
|
|
import Comments from './collection.js';
|
|
|
|
// declare comments queries
|
|
Telescope.graphQL.addQuery(`
|
|
comments(postId: String): [Comment]
|
|
comment(_id: String): Comment
|
|
`);
|
|
|
|
Comments.graphQLQueries = {
|
|
single: `
|
|
_id
|
|
postId
|
|
parentCommentId
|
|
topLevelCommentId
|
|
body
|
|
htmlBody
|
|
postedAt
|
|
user {
|
|
_id
|
|
__slug
|
|
__emailHash # used for the avatar
|
|
}
|
|
`
|
|
}
|