mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
Remove question and question resolver.
This commit is contained in:
parent
8b757bc556
commit
82b171f9a1
|
@ -263,12 +263,8 @@ Full example
|
|||
|
||||
|
||||
class Query:
|
||||
question = graphene.Field(QuestionType)
|
||||
questions = relay.ConnectionField(QuestionConnection)
|
||||
|
||||
def resolve_question(root, info, **kwargs):
|
||||
return Question
|
||||
|
||||
def resolve_questions(root, info, **kwargs):
|
||||
return Question.objects.all()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user