Skip to content

Releases: strawberry-graphql/strawberry-django

Release 0.44.0

10 Jun 17:02
d0d4f39
Compare
Choose a tag to compare

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

07 Jun 14:45
eec919c
Compare
Choose a tag to compare

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

  • @Ckk3 made their first contribution in #546

Full Changelog: v0.42.0...v0.43.0

Release 0.42.0

30 May 21:53
41a00ec
Compare
Choose a tag to compare

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

26 May 12:03
7d1f12f
Compare
Choose a tag to compare

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

26 May 11:48
b63e328
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.40.0...v0.41.0

Release 0.40.0

11 May 19:09
2d7c091
Compare
Choose a tag to compare

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

Full Changelog: v0.39.2...v0.40.0

Release 0.39.2

25 Apr 22:36
98d6455
Compare
Choose a tag to compare

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

21 Apr 17:36
5db3255
Compare
Choose a tag to compare

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

21 Apr 17:02
d424017
Compare
Choose a tag to compare

What's changed

  • feat: support for strawberry 0.227.1+

Full Changelog: v0.38.0...v0.39.0

Release 0.38.0

20 Apr 15:51
90b1f61
Compare
Choose a tag to compare

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