What am i doing wrong in this resolver? (ie, what ...
# orm-help
b
What am i doing wrong in this resolver? (ie, what is the right answer)
Copy code
return context.prisma.users({
    where: { trips: {in: parent.id} },
  });

type User {
  id: ID!
  uid: String!
  name: String!
  email: String!
  gender: String
  trips: [Trip!]
}
r
Hey bob 👋 Could you share your resolver and
schema.graphql
if possible?
r
Try:
Copy code
return context.prisma.users({
    where: { trips: {id: {in: parent.id}} },
  });