Skip to content

Commit dc330e7

Browse files
committed
Fix example code
1 parent 8df0899 commit dc330e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/queries.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Show all fields **except** those in ``exclude``:
8585
class QuestionType(DjangoObjectType):
8686
class Meta:
8787
model = Question
88-
exclude = ('question_text', )
88+
exclude = ('question_text',)
8989
9090
9191
Customising fields
@@ -99,7 +99,7 @@ You can completely overwrite a field, or add new fields, to a ``DjangoObjectType
9999
100100
class Meta:
101101
model = Question
102-
exclude_fields = ('question_text')
102+
fields = ('id', 'question_text')
103103
104104
extra_field = graphene.String()
105105

0 commit comments

Comments
 (0)