A property name formatter for GraphQL.Query.Builder based on Newtonsoft.Json.
Total Downloads
1.0M
1,036,098
Published
Aug 20, 2026
2mo ago
Get Started
dotnet add package GraphQL.Query.Builder.Formatter.NewtonsoftJson --version 1.0.4
| Product | Versions |
|---|---|
| .NET Standard |
README
Newtonsoft.Json Formatter for GraphQL Query Builder

A Newtonsoft.Json property name formatter for GraphQL.Query.Builder (>= 2.0.0).
This formatter returns the JsonPropertyAttribute value.
Install
> dotnet add package GraphQL.Query.Builder.Formatter.NewtonsoftJson
Usage
public class Human
{
[JsonProperty("firstName")]
public string? FirstName { get; set; }
[JsonProperty("lastName")]
public string? LastName { get; set; }
}
// Initialize the options
QueryOptions options = new()
{
Formatter = NewtonsoftJsonPropertyNameFormatter.Format
};
// Create the query with the options
var query = new Query<Human>("humans", options)
.AddArguments(new { id = "uE78f5hq" })
.AddField(h => h.FirstName)
.AddField(h => h.LastName);
Console.WriteLine("{" + query.Build() + "}");
// Output:
// {humans(id:"uE78f5hq"){firstName lastName}
Downloads by Version
Similar & Alternative Packages
Hand-picked matching NuGet libraries based on tags & ecosystem
Depended On By
Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.