Setu-TS
    Preparing search index...

    Interface GraphqlOperationContext

    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.

    0.3.0

    interface GraphqlOperationContext {
        connection?: GraphqlConnectionInfo;
        requestContext?: IRequestContext;
    }
    Index

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

    requestContext?: IRequestContext

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