Guest User

Untitled

a guest
Apr 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. const authors = [
  2. {
  3. name: 'JK Rowling',
  4. age: 50,
  5. Books: ["Harry Potter and the Goblet of Fire", "Harry Potter and the Prisoner of Azkaban"]
  6. },
  7. {
  8. name: 'George RR Marting',
  9. age: 70,
  10. Books: ["GOT - Song of Ice and Fire", "GOT - A Dance with Dragons"]
  11. },
  12. {
  13. name: 'Stephen King',
  14. age: 70,
  15. Books: ["It", "Carrie"]
  16. }
  17. ];
  18.  
  19. const resolvers = {
  20. Query: {
  21. authors: () => {
  22. return authors
  23. }
  24. }
  25. }
  26.  
  27. export default resolvers;
Add Comment
Please, Sign In to add comment