@graphql-tools/executor
Version:
Fork of GraphQL.js' execute function
12 lines (11 loc) • 751 B
text/typescript
import type { GraphQLError } from 'graphql';
import { DeferredFragmentFactory } from './DeferredFragments.cjs';
import type { CancellableStreamRecord, IncrementalDataRecord, IncrementalExecutionResults } from './types.cjs';
export declare function buildIncrementalResponse<TData = any>(context: IncrementalPublisherContext, result: TData, errors: ReadonlyArray<GraphQLError> | undefined, incrementalDataRecords: ReadonlyArray<IncrementalDataRecord>): IncrementalExecutionResults<TData>;
interface IncrementalPublisherContext {
useIncrementalNotifications: boolean;
signal: AbortSignal | undefined;
deferredFragmentFactory: DeferredFragmentFactory | undefined;
cancellableStreams: Set<CancellableStreamRecord> | undefined;
}
export {};