Soenneker.Railway.GraphQlClient 11.0.51

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Railway.GraphQlClient --version 11.0.51
                    
NuGet\Install-Package Soenneker.Railway.GraphQlClient -Version 11.0.51
                    
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="Soenneker.Railway.GraphQlClient" Version="11.0.51" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Railway.GraphQlClient" Version="11.0.51" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Railway.GraphQlClient" />
                    
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 Soenneker.Railway.GraphQlClient --version 11.0.51
                    
#r "nuget: Soenneker.Railway.GraphQlClient, 11.0.51"
                    
#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 Soenneker.Railway.GraphQlClient@11.0.51
                    
#: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=Soenneker.Railway.GraphQlClient&version=11.0.51
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Railway.GraphQlClient&version=11.0.51
                    
Install as a Cake Tool

Soenneker.Railway.GraphQlClient

Typed .NET 10 GraphQL queries, mutations, inputs and response models generated from Railway's live schema. The schema snapshot is in graphql.schema; generated code is in src/Soenneker.Railway.GraphQlClient/Generated.

using System.Net.Http.Headers;
using Soenneker.Railway.GraphQlClient;

using var http = new HttpClient
{
    BaseAddress = new Uri("https://backboard.railway.com/graphql/v2")
};
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var client = new RailwayGraphQlClient(new GraphQlHttpClient(http));
var response = await client.GetProject.Execute(new GetProjectVariables { Id = projectId });
if (response.HasErrors)
    throw new InvalidOperationException(response.Errors![0].Message);
var project = response.Data?.Project;

Use client.Project.Create.Execute(new ProjectCreateVariables { Input = new ProjectCreateInput { Name = "example", WorkspaceId = workspaceId } }) to create a project. Mutations modify Railway resources. This example is not executed by tests.

The HTTP transport uses the exact base URI, preserves GraphQL errors and partial data, and throws on unsuccessful HTTP status codes. GetValue is a convenience accessor; use Execute when you need error details. The caller owns the supplied HttpClient.

Generated operations use automatically selected fields. To choose a smaller selection set, use new GraphQlHttpClient(http).Execute<T>(query, variables) with your own response model. GraphQL subscription streaming and multipart uploads are not implemented by this HTTP transport.

Dates use DateTimeOffset, enums use GraphQL string names, and custom scalars (including JSON configuration and BigInt) use JsonElement to preserve arbitrary data and numeric precision. GraphQL interfaces use their generated C# interfaces; deserialize concrete response models for custom polymorphic selections.

For dependency injection use the companion Soenneker.Railway.GraphQlClientUtil package. Regenerate with Soenneker.Railway.Runners.GraphQlClient; do not edit generated files manually.

API documentation: https://docs.railway.com/integrations/api

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net11.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Railway.GraphQlClient:

Package Downloads
Soenneker.Railway.GraphQlClientUtil

A thread-safe utility for obtaining Railway's GraphQlClient singleton.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.56 9 11/19/2026
11.0.55 53 11/18/2026
11.0.53 97 11/17/2026
11.0.52 94 11/16/2026
11.0.51 117 11/14/2026
11.0.50 104 11/13/2026
11.0.49 105 11/12/2026
11.0.48 95 11/11/2026
11.0.47 137 11/11/2026
11.0.46 108 11/10/2026
11.0.45 108 11/9/2026
11.0.44 102 11/7/2026
11.0.43 114 11/6/2026
11.0.42 107 11/5/2026
11.0.41 106 11/4/2026
11.0.40 105 11/3/2026
11.0.39 172 10/30/2026
11.0.38 119 10/30/2026
11.0.37 139 10/27/2026
11.0.36 97 10/27/2026
Loading failed

Regenerate Railway GraphQL client