Anarchy.Toolkit.Web.GraphQL 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Anarchy.Toolkit.Web.GraphQL --version 1.1.0
                    
NuGet\Install-Package Anarchy.Toolkit.Web.GraphQL -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Anarchy.Toolkit.Web.GraphQL" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Anarchy.Toolkit.Web.GraphQL" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Anarchy.Toolkit.Web.GraphQL" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Anarchy.Toolkit.Web.GraphQL --version 1.1.0
                    
#r "nuget: Anarchy.Toolkit.Web.GraphQL, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Anarchy.Toolkit.Web.GraphQL@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Anarchy.Toolkit.Web.GraphQL&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Anarchy.Toolkit.Web.GraphQL&version=1.1.0
                    
Install as a Cake Tool

Anarchy.Toolkit.Web.GraphQL

GraphQL wiring for ASP.NET Core APIs built on the toolkit's web pipeline.

dotnet add package Anarchy.Toolkit.Web.GraphQL
  • Define your schema using SchemaBase and register it with AddToolkitGraphQl<TSchema>(graphTypesAssembly). Register root graph types separately.
  • Add the endpoint and GraphiQL playground middleware with UseToolkitGraphQl<TSchema>(authorizationPolicy).
  • GraphQlRoutes provides route conventions; the GraphQL endpoint requires the supplied authorization policy.

When to use it

Add this package when an ASP.NET Core application needs a GraphQL endpoint alongside, or instead of, REST routes. It wires graphql-dotnet into the host; your application supplies its schema, query and mutation types, resolvers and authorization policy.

How to use it

  1. Define a schema (optionally deriving from SchemaBase) and set its query and any mutation or subscription roots. Register root graph types and their application services in DI.
  2. Register the schema and discover graph types from the appropriate assembly. Add the middleware with the name of an authorization policy already configured by the host:
using Anarchy.Toolkit.Web.GraphQL.Extension.DependencyInjection;
using Anarchy.Toolkit.Web.GraphQL.Extension.Service.Builder;

services.AddToolkitGraphQl<MySchema>(typeof(MySchema).Assembly);
// In the configured ASP.NET Core pipeline:
app.UseToolkitGraphQl<MySchema>("MyGraphQlPolicy");

Replace MySchema and the policy name with your application types. Optional path arguments override the endpoint and GraphiQL routes. The GraphQL endpoint requires the supplied policy; evaluate whether the separately served GraphiQL UI should be exposed in each environment.

See the endpoint guide and toolkit overview.

Releases

1.0.6

  • docs: expand XML docblocks across all projects for the DocFX API reference

1.0.5

  • refactor(src): clean up code style across library packages

1.0.3

  • build: migrate local automation to build tooling

1.0.2

  • docs: expand package guides and release histories

1.0.1

  • Added a package-specific NuGet README.

1.0.0

  • Introduced a GraphQL schema base, route definitions and extensions for exposing GraphQL endpoints.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.1 0 11/21/2026
2.0.0 0 11/20/2026
1.1.2 49 11/18/2026
1.1.1 49 11/17/2026
1.1.0 53 11/17/2026
1.0.6 86 11/16/2026
1.0.5 86 11/14/2026
1.0.4 86 11/9/2026
1.0.3 82 11/9/2026
1.0.1 91 11/6/2026
1.0.0 91 11/5/2026

Initial release.