Skip to content

Prisma 2 Documentation on where clause with multiple conditions in update and delete statements #4185

Answered by ryands17
Dreamystify asked this question in Q&A
Discussion options

You must be logged in to vote

@Dreamystify 👋

We have docs on the supported operations here. Currently you're trying to update on multiple conditions where one of them is not unique i.e. the active part. update just taken in unique values so in this case, you would need to replace update with updateMany.

Replies: 8 comments 38 replies

Comment options

You must be logged in to vote
22 replies
@sehmaschine
Comment options

@ryands17
Comment options

@ridhwaans
Comment options

@ryands17
Comment options

@jaydip-github
Comment options

Answer selected by jharrell
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@vaughngit
Comment options

@nenadfilipovic
Comment options

@brandonmpetty
Comment options

@nenadfilipovic
Comment options

@2chanhaeng
Comment options

Comment options

You must be logged in to vote
4 replies
@vaughngit
Comment options

@blevine
Comment options

@vaughngit
Comment options

@panzi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@janpio
Comment options

Comment options

You must be logged in to vote
1 reply
@Abdel-Monaam-Aouini
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet