We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd67a8 commit 8992b26Copy full SHA for 8992b26
graphene_pydantic/converters.py
@@ -125,6 +125,7 @@ def convert_pydantic_field(
125
)
126
field_kwargs.setdefault("required", field.required)
127
field_kwargs.setdefault("default_value", field.default)
128
+ field_kwargs.setdefault("name", field.alias)
129
# TODO: find a better way to get a field's description. Some ideas include:
130
# - hunt down the description from the field's schema, or the schema
131
# from the field's base model
0 commit comments