здесь у меня есть мутация, так как вы можете видеть имя параметра Product с заглавной буквой P, а имя поля CreateProduct с заглавной C, когда я выполняю эту мутацию из графического объекта, я должен написать имя поля на верблюжьем корпусе и также имя параметра, есть ли способ настроить graphql-dotnet для учета имен, как они написаны в коде?
const string STR_Product = "Product";
public Mutations(IProductService ProductService)
{
Name = "Mutation";
Field<ProductType>(
"CreateProduct",
arguments: new QueryArguments(
new QueryArgument<NonNullGraphType<ProductInputType>> { Name = STR_Product }),
resolve: context =>
{
var ProductInput = context.GetArgument<ProductInput>(STR_Product);
return ProductService.CreateAsync(ProductInput.Code, ProductInput.Name, ProductInput.Description);
//return new ProductInputType();
}
);
}
}