UNPKG

536 BTypeScriptView Raw
1import { GraphQLError } from 'graphql';
2import { ExecutionResult } from '@graphql-tools/utils';
3import { DelegationContext } from './types';
4export declare function checkResultAndHandleErrors(result: ExecutionResult, delegationContext: DelegationContext): any;
5export declare function mergeDataAndErrors(data: any, errors: ReadonlyArray<GraphQLError>, path: Array<string | number> | undefined, onLocatedError?: (originalError: GraphQLError) => GraphQLError, index?: number): {
6 data: any;
7 unpathedErrors: Array<GraphQLError>;
8};