'How to change hotchocolate default json serializer

How can i change the json serializer used by hotchocalate i could not find anything in the documentation.

i tried to look at the source code but it seems like it hard coded in the HttpResponseExtensions .

its uses camel case so it will a pain to change all my models in the front side of the app , any ideas ? i think that the team is aware of this : https://github.com/ChilliCream/hotchocolate/issues/4072 but i'm looking for a workaround



Solution 1:[1]

Schema has convention of camescase field naming. It would be wierd you return PascalCasing in response, and asking in camel case. Make deserialization in client case insensitive, and don't touch client models.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 100r