GraphQL Client

The outbound client validates hand-written GraphQL queries against a server's schema and runs them. It ships in three packages. For the concepts (query modes, schema sources, keyed clients), see GraphQL Client.

services
    .AddTraxGraphQLClient(new Uri("https://api.example.com/graphql"))
    .UseFileSchema("schema.graphql")
    .WithStrictness(ResponseStrictness.ThrowOnDrift);

Trax.Api.GraphQL.Client

The kernel. It has no dependency on trains, the mediator or a database.

Trax.Api.GraphQL.Client.Trax

Trax.Api.GraphQL.Client.Typed

  • TypedRequest: a request whose query is generated from its response type, and the attributes that shape it.

How-to guides