Skip to content

Nested queries are not properly optimized in graphene-django v3.0.0 (but are in v3.0.0b7) #86

@sjdemartini

Description

@sjdemartini

graphene-django just released a non-beta version of v3 last month (https://github.com/graphql-python/graphene-django/releases/tag/v3.0.0), and graphene-django-optimizer does not appear to optimize queries properly with the new graphene-django release unfortunately.

The latest version of graphene-django-optimizer (0.9.1) appears to work properly with graphene-django v3.0.0b7 (a beta version released a couple years ago, which is listed in the dev-env-requirements.txt for this repo). But when bumping that, SQL-optimization no longer works in many cases, such as with nested fields requiring prefetch_related.

See branch here with version bumps and failing tests: #85

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions