Last active
July 19, 2020 15:46
-
-
Save mtvspec/af9e5f349c068201b23d34cf06b7f9fa 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
const authorResolver = (obj, args, ctx, info) => AuthorController.getAuthor(args['id]); | |
function bookResolver(obj, args, ctx, info) { | |
return BookController.getBook(args['id') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment