Soenneker.Railway.GraphQlClient
11.0.55
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Railway.GraphQlClient --version 11.0.55
NuGet\Install-Package Soenneker.Railway.GraphQlClient -Version 11.0.55
<PackageReference Include="Soenneker.Railway.GraphQlClient" Version="11.0.55" />
<PackageVersion Include="Soenneker.Railway.GraphQlClient" Version="11.0.55" />
<PackageReference Include="Soenneker.Railway.GraphQlClient" />
paket add Soenneker.Railway.GraphQlClient --version 11.0.55
#r "nuget: Soenneker.Railway.GraphQlClient, 11.0.55"
#:package Soenneker.Railway.GraphQlClient@11.0.55
#addin nuget:?package=Soenneker.Railway.GraphQlClient&version=11.0.55
#tool nuget:?package=Soenneker.Railway.GraphQlClient&version=11.0.55
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
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 |
Regenerate Railway GraphQL client