Fix example code

This commit is contained in:
Jonathan Kim 2019-06-26 10:02:41 +01:00
parent 8776920723
commit aa04fd7f8f

View File

@ -85,7 +85,7 @@ Show all fields **except** those in ``exclude``:
class QuestionType(DjangoObjectType):
class Meta:
model = Question
exclude = ('question_text', )
exclude = ('question_text',)
Customising fields
@ -99,7 +99,7 @@ You can completely overwrite a field, or add new fields, to a ``DjangoObjectType
class Meta:
model = Question
exclude_fields = ('question_text')
fields = ('id', 'question_text')
extra_field = graphene.String()