GraphQL.AspNet 2.0.0-beta1

This is a prerelease version of GraphQL.AspNet.
dotnet add package GraphQL.AspNet --version 2.0.0-beta1
                    
NuGet\Install-Package GraphQL.AspNet -Version 2.0.0-beta1
                    
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="GraphQL.AspNet" Version="2.0.0-beta1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GraphQL.AspNet" Version="2.0.0-beta1" />
                    
Directory.Packages.props
<PackageReference Include="GraphQL.AspNet" />
                    
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 GraphQL.AspNet --version 2.0.0-beta1
                    
#r "nuget: GraphQL.AspNet, 2.0.0-beta1"
                    
#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 GraphQL.AspNet@2.0.0-beta1
                    
#: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=GraphQL.AspNet&version=2.0.0-beta1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=GraphQL.AspNet&version=2.0.0-beta1&prerelease
                    
Install as a Cake Tool

GraphQL ASP.NET

Documentation: https://graphql-aspnet.github.io

GraphQL ASP.NET is a fully featured graphql library that utilizes a controller/action programming model similar to ASP.NET.

This Controller

// BakeryController.cs
[GraphRoute("groceryStore/bakery")]
public class BakeryController : GraphController
{
    public BakeryController(IPastryService pastryService, IBreadService breadService)
    {/* ... */}

    [Query("pastries/search")]
    public IEnumerable<IPastry> SearchPastries(string nameLike, int maxResults = 50)
    {/* ... */}

    [Query("pastries/recipe")]
    public Recipe RetrieveRecipe(int id)
    {/* ... */}

    [Query("breadCounter/orders")]
    public IEnumerable<BreadOrder> FindOrders(int customerId)
    {/* ... */}
}

This GraphQL Query

query SearchGroceryStore($pastryName: String!) {
  groceryStore {
    bakery {
      pastries {
        search(nameLike: $pastryName) {
          name
          type
        }
        recipe(id: 15) {
          name
          ingredients {
            name
          }
        }
      }
      breadCounter {
        orders(id: 36) {
          id
          items {
            id
            quantity
          }
        }
      }
    }
  }
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 (3)

Showing the top 3 NuGet packages that depend on GraphQL.AspNet:

Package Downloads
GraphQL.AspNet.TestFramework

A support library for quickly generating a schema and server instance to use during unit testing.

DanSaul.SharedCode

Package Description

GraphQL.AspNet.Subscriptions

A package to support subscriptions for GraphQL ASP.NET. Provides the required functionality to setup a websocket connection and perform graphql subscriptions over web sockets.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-beta1 5,990 11/26/2023
1.4.3 4,909 4/25/2025
1.4.2 26,001 10/21/2024
1.4.1 54,281 7/9/2024
1.4.0 552 7/7/2024
1.3.2 14,338 3/10/2024
1.3.1 8,133 12/20/2023
1.3.0 1,319 11/24/2023
1.2.7 2,337 10/8/2023
1.2.6 3,137 9/10/2023
1.2.5 15,392 8/27/2023
1.2.4 3,305 7/30/2023
1.2.3 3,521 6/10/2023
1.2.1 7,474 5/7/2023
1.1.0 4,802 2/20/2023
1.0.2 839 1/29/2023
1.0.1 573 1/22/2023
1.0.0 689 1/15/2023
1.0.0-RC4 304 1/6/2023
0.10.2-beta 2,489 7/10/2022
0.10.1-beta 8,632 6/12/2022