Pinja Jäkkö
04/25/2022, 1:32 PMType '"AnyNull"' is not assignable to type 'JsonNullableFilter | undefined'.
My client configuration looks like this:
generator client {
provider = "prisma-client-js"
previewFeatures = ["filterJson", "interactiveTransactions"]
}
I have a postgresql database, my prisma client version is 3.5.0, and the field I am trying to filter by is an optional JSON field.
the findMany call:
await prisma.chart.findMany({
where: {
oldState: Prisma.AnyNull
},
});
Austin
04/25/2022, 9:05 PMawait prisma.chart.findMany({
where: {
oldState: {
equals: Prisma.AnyNull
}
}
})
Pinja Jäkkö
04/26/2022, 8:49 AMAustin
04/26/2022, 8:45 PM