Highlights
This release brings some very interesting features, thanks to @diesieben07 🍓
- A new ordering type is now available, created using
@strawberry_django.order_type
. This type uses a list for specifying ordering criteria instead of an object, making it easier and more flexible to apply multiple orderings, ensuring they will keep their order. Check the ordering docs for more info on how to use it - Support for "true" cursor-based pagination in connections, using the new
DjangoCursorConnection
type. Check the relay docs for more info on how to use it
Also, to maintain consistency across the codebase, we have renamed several classes and functions. The old names are still available for import and use, making this a non-breaking change, but they are marked as deprecated and will eventually be removed in the future. The renames are as follows:
ListConnectionWithTotalCount
got renamed toDjangoListConnection
strawberry_django.filter
got renamed tostrawberry_django.filter_type
What's Changed
- feat: Add new ordering method allowing ordering by multiple fields by @diesieben07 in #679
- feat: Add support for "true" cursor based pagination in connections by @diesieben07 in #730
- refactor: rename ListConnectionWithTotalCount and filter for consistency by @bellini666 in #739
- fix: Fix duplicate LOOKUP_SEP being used when field hints are used with polymorphic queries by @diesieben07 in #736
- fix: Fix a minor typing issue by @diesieben07 in #738
- docs: Fix resolvers.md by @Hermotimos in #735
New Contributors
- @Hermotimos made their first contribution in #735
Full Changelog: v0.58.0...v0.59.0