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`)
```py
# cookbook/ingredients/schema.py
importgraphene
...
...
@@ -42,6 +44,58 @@ class Query(object):
```
We will show some graphql queries and the queryset that will be executed.
Fetching all the ingredients with the related category: