Created
April 11, 2018 11:36
-
-
Save wojciech-bilicki/e98394eb3e4704e2e3afbc12953befce to your computer and use it in GitHub Desktop.
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 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