Vulcan/packages/nova-comments/lib/queries.js

10 lines
254 B
JavaScript
Raw Normal View History

2016-11-08 15:04:17 +09:00
import Telescope from 'meteor/nova:lib';
import Comments from './collection.js';
// declare comments queries
Telescope.graphQL.addQuery(`
comments(postId: String): [Comment]
commentsListTotal(postId: String): Int
2016-11-08 15:04:17 +09:00
comment(_id: String): Comment
`);