interface GraphqlOperationContext
Since 0.3.0

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

The SSE path supplies requestContext; the WS path supplies connection. Using this type (instead of IRequestContext) prevents the WS path from silently handing resolvers an empty context.

Properties

The HTTP request context (supplied by the SSE path).

The WebSocket connection info (supplied by the WS path).

Usage

import { type GraphqlOperationContext } from "common/src/index.ts";