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
8 changes: 4 additions & 4 deletions docs/tutorial-plain.rst
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ We can update our schema to support that, by adding new query for ``ingredient``
return Ingredient.objects.all()

def resolve_category(self, info, **kwargs):
id = kargs.get('id')
name = kargs.get('name')
id = kwargs.get('id')
name = kwargs.get('name')

if id is not None:
return Category.objects.get(pk=id)
Expand All @@ -457,8 +457,8 @@ We can update our schema to support that, by adding new query for ``ingredient``
return None

def resolve_ingredient(self, info, **kwargs):
id = kargs.get('id')
name = kargs.get('name')
id = kwargs.get('id')
name = kwargs.get('name')

if id is not None:
return Ingredient.objects.get(pk=id)
Expand Down