mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 17:47:12 +03:00
typo kargs --> kwargs
This commit is contained in:
parent
f35e445963
commit
53122ee13a
|
@ -445,8 +445,8 @@ We can update our schema to support that, by adding new query for ``ingredient``
|
||||||
return Ingredient.objects.all()
|
return Ingredient.objects.all()
|
||||||
|
|
||||||
def resolve_category(self, info, **kwargs):
|
def resolve_category(self, info, **kwargs):
|
||||||
id = kargs.get('id')
|
id = kwargs.get('id')
|
||||||
name = kargs.get('name')
|
name = kwargs.get('name')
|
||||||
|
|
||||||
if id is not None:
|
if id is not None:
|
||||||
return Category.objects.get(pk=id)
|
return Category.objects.get(pk=id)
|
||||||
|
@ -457,8 +457,8 @@ We can update our schema to support that, by adding new query for ``ingredient``
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def resolve_ingredient(self, info, **kwargs):
|
def resolve_ingredient(self, info, **kwargs):
|
||||||
id = kargs.get('id')
|
id = kwargs.get('id')
|
||||||
name = kargs.get('name')
|
name = kwargs.get('name')
|
||||||
|
|
||||||
if id is not None:
|
if id is not None:
|
||||||
return Ingredient.objects.get(pk=id)
|
return Ingredient.objects.get(pk=id)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user