You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When supplying parameters for unique queries like update or find_unique, I cannot supply additional/redundant constraints other than the unique constraints.
Suggested solution
The JS Prisma Client solved this with the extendedWhereUnique preview feature, which was stabilized in version 5.0.0. I can't seem to get this behavior with Prisma Client Python.
Alternatives
Just not using extended unique queries. This leads to bad usability and/or unnecessary database queries.
Additional context
This is useful for example when authenticating. Consider for example:
Problem
When supplying parameters for unique queries like
update
orfind_unique
, I cannot supply additional/redundant constraints other than the unique constraints.Suggested solution
The JS Prisma Client solved this with the
extendedWhereUnique
preview feature, which was stabilized in version5.0.0
. I can't seem to get this behavior with Prisma Client Python.Alternatives
Just not using extended unique queries. This leads to bad usability and/or unnecessary database queries.
Additional context
This is useful for example when authenticating. Consider for example:
owner
is redundant, but it is still useful.The text was updated successfully, but these errors were encountered: