Releases: strawberry-graphql/strawberry-django
Release 0.44.0
What's Changed
- feat: Nested optimization for lists and connections by @bellini666 in #540
This releases finally enables the highly anticipated nested optimization for lists and connections 🚀
What does that mean? Remember that when trying to retrieve a relation list inside another type and also trying to filter/order/paginate, that would cause n+1 issues because it would force the prefetched list to be thrown away? Well, not anymore after this release! 😊
In case you find any issues with this, please let us know by registering an issue with as much information as possible on how to reproduce the issue.
Note that even though this is enabled by default, nested optimizations can be disabled by passing enabled_nested_relations_prefetch=False
when initializing the optimizer extensions.
- Dropped support for Django versions earlier than 4.2
The nested optimization feature required features only available on Django 4.2+.
To be able to implement it, and also considering that django itself recommended dropping support for those versions, from now on this lib requires Django 4.2+
Full Changelog: v0.43.0...v0.44.0
Release 0.43.0
What's Changed
- Added
export-schema
command to Docs by @Ckk3 in #546 - fix: Fix specialized connection aliases missing filters/ordering by @bellini666 in #547
NOTE: Even though this only contains a bug fix, I decided to do a minor release because the fix is bumping the minimum required version of strawberry-graphql
itself to 0.234.2.
New Contributors
Full Changelog: v0.42.0...v0.43.0
Release 0.42.0
What's Changed
- refactor: Use graphql-core's collect_sub_fields instead of our own implementation by @bellini666 in #537
Full Changelog: v0.41.1...v0.42.0
Release 0.41.1
What's changed
- fix: Move Info out of the TYPE_CHECKING block to prevent a warning (4e8c458)
Full Changelog: v0.41.0...v0.41.1
Release 0.41.0
What's Changed
- docs: Fix typo by @Eraldo in #531
- feat: Add setting DEFAULT_PK_FIELD_NAME by @noamsto in #446
- fix: Fix AttributeError when using optimizer and prefetch_related by @jacobwegner in #533
New Contributors
- @Eraldo made their first contribution in #531
- @noamsto made their first contribution in #446
- @jacobwegner made their first contribution in #533
Full Changelog: v0.40.0...v0.41.0
Release 0.40.0
What's Changed
- feat: Avoid calling Type.get_queryset method more than once by @bellini666 in (6905513)
- test(listconnectionwithtotalcount): check the number of SQL queries when only fetching totalCount by @euriostigue in #525
- fix(optimizer): handle existing select_related in querysets by @taobojlen in #515
New Contributors
- @euriostigue made their first contribution in #525
- @taobojlen made their first contribution in #515
Full Changelog: v0.39.2...v0.40.0
Release 0.39.2
What's Changed
- fix: Delete mutation should not throw error if no objects in filterset by @keithhackbarth in #522
Full Changelog: v0.39.1...v0.39.2
Release 0.39.1
What's changed
- fix: fix annotations inheritance override for python 3.8/3.9
Full Changelog: v0.39.0...v0.39.1
Release 0.39.0
Release 0.38.0
What's Changed
- feat: Ability to use custom field_cls for connections and nodes (#517)
- Fix typos in filtering documentation by @cdroege in #520
Full Changelog: v0.37.1...v0.38.0