mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
clean up resolver
This commit is contained in:
parent
62368a0d48
commit
163eec76fc
1 changed files with 0 additions and 5 deletions
|
@ -23,12 +23,7 @@ const resolvers = {
|
|||
name: 'postsList',
|
||||
|
||||
resolver(root, {terms, offset, limit}, context, info) {
|
||||
// TODO: call check function
|
||||
let {selector, options} = context.Posts.getParameters(terms);
|
||||
console.log('// postsList resolver')
|
||||
console.log(selector)
|
||||
console.log(options)
|
||||
console.log(_.pluck(context.Posts.find(selector, options).fetch(), 'title'))
|
||||
options.limit = (limit < 1 || limit > 100) ? 100 : limit;
|
||||
options.skip = offset;
|
||||
// keep only fields that should be viewable by current user
|
||||
|
|
Loading…
Add table
Reference in a new issue