Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/tutorial-plain.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ Create ``cookbook/ingredients/schema.py`` and type the following:
all_categories = graphene.List(CategoryType)
all_ingredients = graphene.List(IngredientType)

def resolve_all_categories(self, info, **kwargs):
def resolve_all_categories(self, info, *args, **kwargs):
return Category.objects.all()

def resolve_all_ingredients(self, info, **kwargs):
def resolve_all_ingredients(self, info, *args, **kwargs):
# We can easily optimize query count in the resolve method
return Ingredient.objects.select_related('category').all()

Expand Down