Optimize queries executed by [graphene-django](https://github.com/graphql-python/graphene-django) automatically, using [`select_related`](https://docs.djangoproject.com/en/2.0/ref/models/querysets/#select-related), [`prefetch_related`](https://docs.djangoproject.com/en/2.0/ref/models/querysets/#prefetch-related) and [`only`](https://docs.djangoproject.com/en/2.0/ref/models/querysets/#only) methods of Django QuerySet.
...
...
@@ -16,8 +10,6 @@ Optimize queries executed by [graphene-django](https://github.com/graphql-python
pip install graphene-django-optimizer
```
*Note: If you are using Graphene V2, please install version `0.8`. v0.9 and forward will support only Graphene V3*
## Usage
Having the following schema based on [the tutorial of graphene-django](http://docs.graphene-python.org/projects/django/en/latest/tutorial-plain/#hello-graphql-schema-and-object-types)(notice the use of `gql_optimizer`)
...
...
@@ -198,7 +190,7 @@ class IngredientType(gql_optimizer.OptimizedDjangoObjectType):