Last active
October 8, 2017 16:54
-
-
Save rubycut/6784f0f62716cc8769f38fac1e0f8532 to your computer and use it in GitHub Desktop.
graphql article
This file contains hidden or 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
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