Classes

c
GraphqlRuntimeLoadError(
specifier: string,
cause: unknown
)

Error thrown when the graphql runtime cannot be loaded.

c
GraphqlSchemaError(
message: string,
cause?: unknown
)

Error thrown when schema construction or resolver attachment fails.

Functions

f
adaptGraphqlModule(module: GraphqlModuleLike): GraphqlRuntime

Adapt a graphql module to the internal runtime interface.

f
encodeSseComment(): Uint8Array

Encode a keep-alive comment.

f
encodeSseComplete(): Uint8Array

Encode a complete SSE event with the mandatory empty data: field.

f
encodeSseEvent(data: unknown): Uint8Array

Encode a next SSE event carrying a GraphQL execution result.

f
f
loadGraphqlModule(importer?): Promise<GraphqlRuntime>

Load the graphql runtime, either from an injected module or lazily.

f
persistedQueryHash(
query: string,
subtle: SubtleCrypto
): Promise<string>

Compute a SHA-256 hash of the query string and return lowercase hex.

Interfaces

I
AnySubscriptionResolver

The entry type for a SUBSCRIPTION resolver stored in a TypeResolverMap.

I
DefaultGraphqlContext

Default context shape that resolvers receive.

I
GraphqlApqOptions

APQ (Automatic Persisted Queries) options.

I
GraphqlCodeFirstOptions

Code-first arm options.

I
GraphqlConnectionInfo

Information about a WebSocket connection used for subscription operations.

I
GraphqlContextInput

Context input for custom context building.

I
GraphqlExecutionResult

The execution result as specified by the GraphQL spec.

I
GraphqlFormattedError

Formatted GraphQL error as returned to the client.

I
GraphqlModuleLike

The structural shape of a graphql@16 module — the external boundary (M70i X6-3).

I
GraphqlOperationContext

Context for a subscription operation, carrying either an HTTP request context or a WebSocket connection info.

I
GraphqlRequestParams

Parameters for a GraphQL execution request.

I
GraphqlScalarResolver

Custom scalar resolver methods.

I
GraphqlSchemaFirstOptions

Schema-first arm options.

I
GraphqlSseTransportOptions

SSE transport options for GraphQL subscriptions.

I
GraphqlSubscriptionsOptions

Subscription transport configuration.

I
GraphqlWsTransportOptions

WebSocket transport options for GraphQL subscriptions.

I
IGraphqlService

The GraphQL service contract.

I
SubscriptionResolver

A subscription field's resolver pair.

Type Aliases

Variables