Postgres "json" column type throws errors with JSON filtering's array_contains #8977
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
topic: filterJson
topic: previewFeatures
Issue touches on an preview feature flag
Bug description
When trying to select within an array of items, I get the following error
How to reproduce
Given the following Postgres Schema
I've seeded this schema with the following:
I then ran
npx prisma db pull
to get the following Prisma Schema:Then I ran
npx prisma generate
and wrote the following script, where I'd like to select the row with the array that contains "carrots":Expected behavior
I'd expect to get back the following result:
You're able to get back this result by changing the column to
jsonb
:And running the script again
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: