GraphQL - Type Relationships
Consider this nested resolver code:
What is the error in this resolver?
const resolvers = {
Author: {
books: (parent) => {
return books.filter(book => book.authorId = parent.id);
}
}
};What is the error in this resolver?
