GraphQL - Resolvers
Find the bug in this resolver:
Assuming
const resolver = (parent, args, context) => {
const userId = context.userId;
return context.db.getUser(userId);
}Assuming
context.userId is undefined.