You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to use the existing plugin system to customize field names in ariadne-codegen? If I have a field crc32c_hash in a query, codegen will create a Pydantic field crc_32_c_hash: Optional[str] = Field(alias="crc32c_hash", default=None). I just want to retrain the original field name. It looks like there's been some work done on the Ariadne server side, but I'm wondering if there's a way to override the Pydantic field naming rules for specific fields.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to use the existing plugin system to customize field names in ariadne-codegen? If I have a field
crc32c_hash
in a query, codegen will create a Pydantic fieldcrc_32_c_hash: Optional[str] = Field(alias="crc32c_hash", default=None)
. I just want to retrain the original field name. It looks like there's been some work done on the Ariadne server side, but I'm wondering if there's a way to override the Pydantic field naming rules for specific fields.Beta Was this translation helpful? Give feedback.
All reactions