Releases: strawberry-graphql/strawberry-django
Release 0.37.1
What's Changed
- Fixing Docs Typo by @drewbeno1 in #513
- fix: fix debug toolbar when used with apollo_sandbox ide (#514)
- fix: fix debug toolbar running on ASGI and Python 3.12
New Contributors
- @drewbeno1 made their first contribution in #513
Full Changelog: v0.37.0...v0.37.1
Release 0.37.0
What's Changed
Full Changelog: v0.36.0...v0.37.0
Release 0.36.0
Release 0.35.1
What's Changed
Full Changelog: v0.35.0...v0.35.1
Release 0.35.0
🚀 Highlights (contains BREAKING CHANGES)
This release contains a major refactor of how filters and ordering works with this library (#478).
Thank you very much for this excellent work @Kitefiko 😊
Some distinctions between the new API and the old API:
Filtering
- The previously deprecated
NOT
filters with a leadingn
were removing,NOT
is the only negation option from now on - New
DISTINCT: Boolean
option to call.distinct()
in the resulting QuerySet: https://strawberry-graphql.github.io/strawberry-django/guide/filters/#and-or-not-distinct - Custom filters can be defined using a method with the
@strawberry_django.filter_field
decorator: https://strawberry-graphql.github.io/strawberry-django/guide/filters/#custom-filter-methods - The default filter method can be overriden also by using a
@strawberry_django.filter_field
decorator: https://strawberry-graphql.github.io/strawberry-django/guide/filters/#overriding-the-default-filter-method - Lookups have been separated into multiple types to make sure the API is not exposing an invalid lookup for a given attribute (e.g. trying to filter a
BooleanField
by__range
): https://strawberry-graphql.github.io/strawberry-django/guide/filters/#generic-lookup-reference
IMPORTANT NOTE: If you find any issues and/or can't migrate your codebase yet, the old behaviour can still be achieved by setting USE_DEPRECATED_FILTERS=True
in your django settings: https://strawberry-graphql.github.io/strawberry-django/guide/filters/#legacy-filtering
Also, make sure to report any issues you find with the new API.
Ordering
- It is now possible to define custom ordering methods: https://strawberry-graphql.github.io/strawberry-django/guide/ordering/#custom-order-methods
- The
Ordering
enum have 4 more options:ASC_NULLS_FIRST
,ASC_NULLS_LAST
,DESC_NULLS_FIRST
andDESC_NULLS_LAST
: https://strawberry-graphql.github.io/strawberry-django/guide/ordering/#ordering - The default order method can now be overridden for the entire resolution: https://strawberry-graphql.github.io/strawberry-django/guide/ordering/#overriding-the-default-order-method
There are no breaking changes in the new ordering API, but please report any issues you find when using it.
New Contributors
Full Changelog: v0.34.0...v0.35.0
Release 0.34.0
Release 0.33.0
What's Changed
- chore: update and improve github workflows by @bellini666 in #492
- fix: use str() to trigger eventual django's gettext_lazy string by @fabien-michel in #493
- Fix auto enum value allowed chars by @fabien-michel in #494
Full Changelog: v0.32.2...v0.33.0
Release 0.32.2
What's Changed
- Add py.typed marker for mypy by @pm-incyan in #486
- fix: OneToManyInput saves and runs validation on foreign key #487 by @keithhackbarth in #490
New Contributors
- @pm-incyan made their first contribution in #486
- @keithhackbarth made their first contribution in #490
Full Changelog: v0.32.0...v0.32.2
Release 0.32.0
What's Changed
- Expose pagination api publicly by @fireteam99 in #476
- Fix permissioned pagination by @vecchp in #480
- feat: allow extensions to prevent results from being fetched by @bellini666 in #481
New Contributors
Full Changelog: v0.31.0...v0.32.0
Release 0.31.0
What's Changed
- chore: Rename all links to the new repository name by @bellini666 in #477
- fix: cache definitions in optimizer by @yergom in #474
New Contributors
Full Changelog: v0.30.1...v0.31.0