UNPKG

@graphql-tools/executor

Version:

Fork of GraphQL.js' execute function

12 lines (11 loc) 749 B
import type { GraphQLError } from 'graphql'; import { DeferredFragmentFactory } from './DeferredFragments.js'; import type { CancellableStreamRecord, IncrementalDataRecord, IncrementalExecutionResults } from './types.js'; 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 {};