Define a resolver
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
// Resolvers define the technique for fetching the types defined in the | |
// schema. This resolver retrieves books from the "books" array above. | |
const resolvers = { | |
Query: { | |
books: () => books, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment