Skip to content

Instantly share code, notes, and snippets.

@AgustinCastella
Created April 13, 2021 20:04
Embed
What would you like to do?
Define a resolver
// 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