Skip to content

Instantly share code, notes, and snippets.

@rubycut
Last active October 8, 2017 16:54
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 rubycut/6784f0f62716cc8769f38fac1e0f8532 to your computer and use it in GitHub Desktop.
Save rubycut/6784f0f62716cc8769f38fac1e0f8532 to your computer and use it in GitHub Desktop.
graphql article
const resolvers = {
Query: {
customer(root, args, context,info) {
var c = Customer.findForUser(context,args.id).populate('contacts')
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment