Hi All, I’m using `Prisma 4.0.0` but for some rea...
# orm-help
h
Hi All, I’m using
Prisma 4.0.0
but for some reason
where: {  my_json_field: Prisma.DbNull } ,
still throws
JsonNullableFilter
TS error. Any ideas on what I could be missing?
1
a
Hey there! Could you share your application code where you are using
Prisma.DbNull
?
h
It’s a basic
findMany()
query. I actually ended up solving it with:
Copy code
where: {
          my_json_field: { equals: Prisma.DbNull },
}
. . . although, it would be nice if the docs were clearer on this. Currently there’s reference to
data:{}
on JSON filters, which certainly is incorrect. 😆
👍 1
Thanks though!