Setu-TS
    Preparing search index...

    Type Alias GraphqlSubscriptionOutcome

    GraphqlSubscriptionOutcome:
        | { kind: "error"; result: GraphqlExecutionResult; status: number }
        | { kind: "single"; result: GraphqlExecutionResult; status: number }
        | {
            kind: "stream";
            status: number;
            stream: AsyncIterable<GraphqlExecutionResult>;
        }

    Discriminated outcome of a subscription operation.

    Three arms because the wire needs the distinction:

    • 'error' — a request error (parse, validation, operation resolution); the WS transport emits error and NO complete.
    • 'single' — a query or mutation that executed; one next then complete.
    • 'stream' — a true subscription; many next then complete.

    0.3.0