-
Notifications
You must be signed in to change notification settings - Fork 67
Prisma DMMF JsonFilter
input has no fields
#689
Comments
Thanks for reporting @MichalLytek! |
Hi @timsuchanek! |
Is there any news on this? It is causing a blocking issue for us with an existing database. I have a field of the Json type, so it will break the API. Even when I don't enable the filter for that field (I don't need it) in Nexus, it still results in an exception. Would be great if we can disable this placeholder or workaround it. Now I have to write custom queries in Nexus for normal crud operations. |
Thanks a lot for your input everyone! So from now on, you can filter by equality of a Json blob! Closed by prisma/prisma@3a1a4fb |
This is how you can filter for Json now: const result = await prisma.post.findMany({
where: {
jsonData: [
{
array1key: 'array1value',
},
],
},
}) |
Bug description
When I have really simple model:
For filter input types, for fields of type
Json
, it emitsJsonFilter
object type as field input type:But the generated
JsonFilter
type has nofields
which results in empty input type class generated by TypeGraphQL integration:Environment & setup
prisma -v
to see your Prisma version] 2.0.0-beta.5node -v
to see your Node.js version] 13.12The text was updated successfully, but these errors were encountered: