We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently Enums are not properly serialized when the standard Newtonsoft Serializer is used.
Solution:
public sealed class GraphQLEnumConverter : StringEnumConverter { public GraphQLEnumConverter() : base(new PascalCaseNamingStrategy()) { } } internal sealed class PascalCaseNamingStrategy : NamingStrategy { protected override string ResolvePropertyName(string name) => name; } GQLClient = new GraphQLHttpClient(new GraphQLHttpClientOptions { EndPoint = new Uri(EndpointHttp) }, new NewtonsoftJsonSerializer(new JsonSerializerSettings { Converters = new List<JsonConverter>{ new StringEnumConverter(new PascalCaseNamingStrategy()) } }));
This should be added to the docs.
The text was updated successfully, but these errors were encountered:
@maaft Could you create a PR that adds this to the docs?
Sorry, something went wrong.
No branches or pull requests
Currently Enums are not properly serialized when the standard Newtonsoft Serializer is used.
Solution:
This should be added to the docs.
The text was updated successfully, but these errors were encountered: