Hello, I have a question related to "JSON: Filteri...
# prisma-client
p
Hello, I have a question related to "JSON: Filtering by null Values" https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-by-null-values I follow a similar schema. When i try to do the
Copy code
prisma.foo.findMany({
  where: {
    data: {
      meta: Prisma.AnyNull,
    },
  },
})
I get Object literal may only specify known properties, and 'data' does not exist in type 'FooWhereInput' if i try to do:
Copy code
prisma.foo.findMany({
  where: {
     meta: Prisma.AnyNull,
  },
})
I get:
Copy code
[tsserver 2322] [E] Type 'AnyNull' is not assignable to type 'JsonNullableFilter'.
What am I missing?
1
ok seems like the correct way to do this is:
Copy code
prisma.foo.findMany({
  where: {
     meta: {
       equals: Prisma.AnyNull,
     },
  },
})
is the documentation out of date in this regards?
n
Hey Phillip 👋 Thanks for pointing this out, Could you create a docs issue explaining this scenario so that we could fix this?
1
n
Thanks Philipp 🙌