You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, Prisma appears to support either <field>: 'asc' or <field>: {sort: 'asc'} which this generated type does not. Can the type be relaxed to support either syntax if null sorting is not desired? It is difficult from the graphql query generation side to determine which fields to apply which syntax to.
The text was updated successfully, but these errors were encountered:
After upgrading to v19 (to align with Prisma 5), we are experiencing issues with our existing graphql queries and query generation.
Our generated types have changed, specifically in the xxxOrderByWithRelationInput interfaces.
For example:
Previously we were on v18.0.2, which produced a class more like the below.
The required GQL query for sorting on
jiraStatus
is noworderBy: { jiraStatus: {sort: 'asc' }}
instead oforderBy: {jiraStatus: 'asc'}}
. This apepars to be in service of Prisma 4.16+ nullable sort feature https://www.prisma.io/docs/orm/prisma-client/queries/filtering-and-sorting#sort-with-null-records-first-or-lastHowever, Prisma appears to support either
<field>: 'asc'
or<field>: {sort: 'asc'}
which this generated type does not. Can the type be relaxed to support either syntax if null sorting is not desired? It is difficult from the graphql query generation side to determine which fields to apply which syntax to.The text was updated successfully, but these errors were encountered: