UNPKG

graphql

Version:

A Query Language and Runtime which can target any service.

16 lines (15 loc) 704 B
import type { ObjMap } from "../../jsutils/ObjMap.mjs"; import type { GraphQLError } from "../../error/GraphQLError.mjs"; import type { ExperimentalIncrementalExecutionResults, IncrementalWork } from "./IncrementalExecutor.mjs"; /** @internal */ export declare class IncrementalPublisher { private _ids; private _nextId; constructor(); buildResponse(data: ObjMap<unknown>, errors: ReadonlyArray<GraphQLError>, work: IncrementalWork, abortSignal: AbortSignal | undefined, onFinished: () => void): ExperimentalIncrementalExecutionResults; private _ensureId; private _toPendingResults; private _handleBatch; private _handleWorkQueueEvent; private _getBestIdAndSubPath; }