Using the where clause with Prisma, is there a way...
# orm-help
p
Using the where clause with Prisma, is there a way to create the equivalent of a SQL IN clause? That is, something like this where trackSessionIds is an array of integers and Id is the primary key of TrackSession
Copy code
const data = await prisma.TrackSession.findMany({
  where: {
    Id: trackSessionIds,
  },
});
p
Perfect. Thanks. Searching for words like “in” can be very frustrating. I was trying “contains” but that didn't help me.
👍 1