Skip to main content

A property name formatter for GraphQL.Query.Builder based on System.Text.Json.

Total Downloads
185.0K
185,046
Published
Aug 20, 2026
2mo ago

Get Started

dotnet add package GraphQL.Query.Builder.Formatter.SystemTextJson --version 1.0.5
ProductVersions
.NET Standard
netstandard2.0

README

System.Text.Json Formatter for GraphQL Query Builder

logo

A System.Text.Json property name formatter for GraphQL.Query.Builder (>= 2.0.0).

This formatter returns the JsonPropertyNameAttribute value.

Build Status Nuget Downloads

Install

dotnet add package GraphQL.Query.Builder.Formatter.SystemTextJson

Usage

public class Human
{
    [JsonPropertyName("firstName")]
    public string? FirstName { get; set; }
    
    [JsonPropertyName("lastName")]
    public string? LastName { get; set; }
}

// Initialize the options
QueryOptions options = new()
{
    Formatter = SystemTextJsonPropertyNameFormatter.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.