Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
Sparrow
Explore posts from servers
R
Railway
S
SolidJS
P
Prisma
Posts
Comments
P
Prisma
•
Created by Sparrow on 5/7/2024 in
#help-and-questions
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.
3 replies