GraphQL - Resolvers
Given the resolver:
and the query:
Which of the following is a likely cause if the resolver returns
function getPost(root, args) { return posts.find(p => p.id == args.postId); }and the query:
{ getPost(postId: 3) { title } }Which of the following is a likely cause if the resolver returns
undefined?