<https://www.prisma.io/forum/t/cannot-return-null-...
# orm-help
h
prisma.users
returns an array
if you are simply finding a single user with a unique id, consider
Copy code
async function user(parent, args, context) {
  return context.prisma.user({ id: args.id })
}
of if you use arrow function,
Copy code
const user = async (parent, { id }, { prisma }) => prisma.user({ id })
l
thanks buddy