Where filter not working with JSON.not with another condition #6755
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: Json
Scalar type `Json`
Milestone
Bug description
Please see this repository for reproduction: https://github.com/AnandChowdhary/prisma-6755-reproduction
If you have a
findMany
with a JSON filter (usingnot
) and another condition, the second condition is entirely ignored:In the above, I would expect that Prisma returns all users that don't have this JSON value in
data
and their ID is 2. Instead, Prisma just returns all users without this JSON value, completely ignoring the second condition.Schema and code
Environment & setup
The text was updated successfully, but these errors were encountered: