GraphQL.NET implements the GraphQL specification for .NET with packages for execution, serializers, DataLoader, and caching. It supports Source Link debugging of its own sources.
Overview
GraphQL for .NET is a community implementation of the GraphQL query language and execution engine for .NET applications. The core package parses and executes requests against schemas you define in C#.
Companion packages provide Newtonsoft or System.Text.Json serializers, in-memory document caching, and a DataLoader utility to batch and cache field resolutions and mitigate N+1 fetches.
Packages publish to NuGet with optional GitHub Packages previews. Documentation on the project site explains installation, execution configuration, and federation-related options where applicable.
Embedded symbols and Source Link allow stepping into library code from consumer IDEs when diagnosing query execution issues.
Key features
- GraphQL execution engine
- NuGet package family
- Multiple serializers
- DataLoader utilities
- Document caching hooks
- Source Link debugging
- Schema in C#
Use cases
- .NET GraphQL APIs
- Federated schema services
- Batched field loading
- ASP.NET GraphQL endpoints