mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 09:37:07 +03:00
Fixed typo in documentation (#1078)
Added missing kwargs to documentation
This commit is contained in:
parent
558288afce
commit
dab6080fcf
|
@ -287,7 +287,7 @@ Where "foo" is the name of the field declared in the ``Query`` object.
|
||||||
class Query(graphene.ObjectType):
|
class Query(graphene.ObjectType):
|
||||||
foo = graphene.List(QuestionType)
|
foo = graphene.List(QuestionType)
|
||||||
|
|
||||||
def resolve_foo(root, info):
|
def resolve_foo(root, info, **kwargs):
|
||||||
id = kwargs.get("id")
|
id = kwargs.get("id")
|
||||||
return Question.objects.get(id)
|
return Question.objects.get(id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user