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
182
182
from graphene_pydantic import PydanticObjectType
183
183
184
184
class Pet :
185
- pass
185
+ pass
186
186
187
187
class Person :
188
- name: str
189
- pets_by_name: typing.Dict[str , Pet]
188
+ name: str
189
+ pets_by_name: typing.Dict[str , Pet]
190
190
191
191
class GraphQLPerson (PydanticObjectType ):
192
- class Meta :
193
- model = Person
192
+ class Meta :
193
+ model = Person
194
194
```
195
195
196
196
However, note that if you use ` exclude_fields ` or ` only_fields ` to exclude those values, there won't be a problem:
197
197
198
198
``` python
199
199
class 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" ,)
203
203
```
204
204
205
205
#### Union types
You can’t perform that action at this time.
0 commit comments