Skip to content

Instantly share code, notes, and snippets.

@wojciech-bilicki
Created April 11, 2018 11:36
Show Gist options
  • Save wojciech-bilicki/e98394eb3e4704e2e3afbc12953befce to your computer and use it in GitHub Desktop.
Save wojciech-bilicki/e98394eb3e4704e2e3afbc12953befce to your computer and use it in GitHub Desktop.
const authors = [
{
name: 'JK Rowling',
age: 50,
Books: ["Harry Potter and the Goblet of Fire", "Harry Potter and the Prisoner of Azkaban"]
},
{
name: 'George RR Marting',
age: 70,
Books: ["GOT - Song of Ice and Fire", "GOT - A Dance with Dragons"]
},
{
name: 'Stephen King',
age: 70,
Books: ["It", "Carrie"]
}
];
const resolvers = {
Query: {
authors: () => {
return authors
}
}
}
export default resolvers;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment