Here is the resolver for the orders query where i ...
# orm-help
a
Here is the resolver for the orders query where i connect the user from the request on context
Copy code
orders(root, args, context, info) {
    const { userId } = context.request;

    if (!userId) {
      throw new Error("You must be logged in to do this");
    }
    
    return context.prisma.orders({
      user: { id: context.request.userId }
    });
  }
n
Maybe:
Copy code
return context.prisma.orders({
      where: {
        user: { id: context.request.userId }
      }
    });
a
Thanks alot man