Set the Pydantic config allow_population_by_field_name. This allows the initialization of Pydantic classes with either the GQL aliases or the Python class attribute names. This will make it easier to print and copy and paste a Pydantic object to tests, for example.
Set the Pydantic config
allow_population_by_field_name
. This allows the initialization of Pydantic classes with either the GQL aliases or the Python class attribute names. This will make it easier to print and copy and paste a Pydantic object to tests, for example.