ra-data-prisma icon indicating copy to clipboard operation
ra-data-prisma copied to clipboard

support SortOrderInput for typegraphql

Open davidmwhynot opened this issue 4 months ago • 0 comments

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.

davidmwhynot avatar Oct 22 '24 18:10 davidmwhynot