Last active
February 22, 2018 11:44
-
-
Save matteodem/d497a516ad891d78636272b89e6cb6a4 to your computer and use it in GitHub Desktop.
grapher + graphql + join-mongo example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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