P
Prisma8mo ago
Sparrow

Prisma `AND` filter not working

await prisma.user.update({
where: {
AND: [
{ id: req.params.id },
{ deleted: false },
],
},
//...
})
await prisma.user.update({
where: {
AND: [
{ id: req.params.id },
{ deleted: false },
],
},
//...
})
this is my snippet, I am trying to update the user if the id is available and also the deleted is false.
1 Reply
Sparrow
SparrowOP8mo ago
any idea what went wrong??
Want results from more Discord servers?
Add your server