mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 01:27:01 +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):
|
||||
foo = graphene.List(QuestionType)
|
||||
|
||||
def resolve_foo(root, info):
|
||||
def resolve_foo(root, info, **kwargs):
|
||||
id = kwargs.get("id")
|
||||
return Question.objects.get(id)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user