Skip to content

Instantly share code, notes, and snippets.

@bartcis
Created July 17, 2019 13:06
Show Gist options
  • Save bartcis/875f872dca72fe344039c1a142623170 to your computer and use it in GitHub Desktop.
Save bartcis/875f872dca72fe344039c1a142623170 to your computer and use it in GitHub Desktop.
Simple resolvers for GraphQL
const resolvers = {
Query: {
books: () => api.books,
countries: () => api.countries
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment