Actually it is not possible to pass enums as variables, because they are serialized as int and not string.
To get it back working:
- Move
GraphQLEnumConverter https://github.com/graphql-dotnet/graphql-client/blob/master/src/GraphQL.Client.LocalExecution/GraphQLEnumConverter.cs to base library
- add the
GraphQLEnumConverter to GraphQLHttpClientOptions.NewtonsoftJsonSerializer as default
new NewtonsoftJsonSerializer
{
JsonSerializerSettings =
{
Converters = new List<JsonConverter>
{
new GraphQLEnumConverter()
}
}
}