Vulcan/packages/nova-comments/lib/queries.js
2016-11-19 20:01:17 +01:00

9 lines
283 B
JavaScript

import Telescope from 'meteor/nova:lib';
import Comments from './collection.js';
// declare comments queries
Telescope.graphQL.addQuery(`
commentsList(postId: String, offset: Int, limit: Int): [Comment]
commentsListTotal(postId: String): Int
comment(_id: String): Comment
`);