Last active
February 15, 2018 13:14
-
-
Save Turbiani/494466ffed8406f3872fa7de152150ab to your computer and use it in GitHub Desktop.
GraphQL Resolver 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
{ | |
Query: { | |
getUserByEmail: (root, args, context, info) => context.db.findUserByEmail(args.email), | |
}, | |
User: { | |
name: (root, args, context, info) => root.name, | |
email: (root, args, context, info) => root.email, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Na linha 6, name está "resolvendo" para email