GraphQL - Resolvers
What is wrong with this resolver that causes a runtime error?
const resolvers = {
Query: {
userId: (parent, args) => {
return parent.id;
}
}
};
Assuming the root query has no parent object.