Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
Add Comment
Please, Sign In to add comment