panter / ra-data-prisma

Packages to connect react-admin with prisma version 2
MIT License
85 stars 28 forks source link

support SortOrderInput for typegraphql #144

Open davidmwhynot opened 1 month ago

davidmwhynot commented 1 month ago

v0.27.0 of typegraphql-prisma bumped prisma up to v5 wherein orderByNulls is enabled by default. This causes a breaking change in the emitted schema due to the type of the sort input type values being either SortOrder or SortOrderInput depending on if the field being sorted on is non-nullable or nullable respectively. This implementation addresses that breaking change and should be backwards compatible as it allows for either of the two options to be used based on the introspection results.