File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -182,24 +182,24 @@ import typing
182182from graphene_pydantic import PydanticObjectType
183183
184184class Pet :
185- pass
185+ pass
186186
187187class Person :
188- name: str
189- pets_by_name: typing.Dict[str , Pet]
188+ name: str
189+ pets_by_name: typing.Dict[str , Pet]
190190
191191class GraphQLPerson (PydanticObjectType ):
192- class Meta :
193- model = Person
192+ class Meta :
193+ model = Person
194194```
195195
196196However, note that if you use ` exclude_fields ` or ` only_fields ` to exclude those values, there won't be a problem:
197197
198198``` python
199199class GraphQLPerson (PydanticObjectType ):
200- class Meta :
201- model = Person
202- exclude_fields = (" pets_by_name" ,)
200+ class Meta :
201+ model = Person
202+ exclude_fields = (" pets_by_name" ,)
203203```
204204
205205#### Union types
You can’t perform that action at this time.
0 commit comments