Fixed typo in documentation (#1078)

Added missing kwargs to documentation
This commit is contained in:
Rustam Ganeyev 2020-12-29 19:30:10 +00:00 committed by GitHub
parent 558288afce
commit dab6080fcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)