diff --git a/docs/queries.rst b/docs/queries.rst index a266ecf..51120b8 100644 --- a/docs/queries.rst +++ b/docs/queries.rst @@ -266,5 +266,11 @@ Full example 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() + See the `Relay documentation `__ on the core graphene pages for more information on customing the Relay experience. \ No newline at end of file