Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support SortOrderInput for typegraphql #144

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davidmwhynot
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant