I am using Prisma and I have two field values that I want to search on
const requests = [{ id, cid }, { id, cid }, { id, cid }];
I want to search on both fields together but for many.
for(request of requests) {
prisma.user.findFirst({
where: {
id: request.id,
cid: request.cid
}
});
}
Basically I want to do the above query but for many pairs at once. How to do that?