GraphQL - Resolvers
A developer writes this resolver:
But the query:
returns an error. What is the most likely cause?
function getItem(root, args) { return items.filter(i => i.category === args.category); }But the query:
{ getItem(category: "books") { name } }returns an error. What is the most likely cause?
