GraphQL - Resolvers
Identify the error in this resolver chain code snippet:
const resolvers = {
Query: {
book: () => ({ id: 5, title: 'GraphQL Guide' })
},
Book: {
author: (args) => {
return { id: 2, name: 'John Doe' };
}
}
};