Skip to content

Instantly share code, notes, and snippets.

@matteodem
Last active February 22, 2018 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matteodem/d497a516ad891d78636272b89e6cb6a4 to your computer and use it in GitHub Desktop.
Save matteodem/d497a516ad891d78636272b89e6cb6a4 to your computer and use it in GitHub Desktop.
grapher + graphql + join-mongo example
import { Meteor } from 'meteor/meteor'
import transformAstToFieldSpecifiers from 'join-mongo'
const myAwesomeResolver = (args, context, root, ast) => {
return Meteor.users.createQuery({
...transformAstToFieldSpecifiers(ast),
}).fetch()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment