mirror of
https://github.com/rjNemo/federation
synced 2026-06-09 11:36:39 +00:00
11 lines
564 B
TypeScript
11 lines
564 B
TypeScript
import { GraphQLResolveInfo, ExecutionResult, GraphQLFormattedError } from 'graphql';
|
|
export declare let ERROR_SYMBOL: any;
|
|
export declare function annotateWithChildrenErrors(object: any, childrenErrors: ReadonlyArray<GraphQLFormattedError>): any;
|
|
export declare function getErrorsFromParent(object: any, fieldName: string): {
|
|
kind: 'OWN';
|
|
error: any;
|
|
} | {
|
|
kind: 'CHILDREN';
|
|
errors?: Array<GraphQLFormattedError>;
|
|
};
|
|
export declare function checkResultAndHandleErrors(result: ExecutionResult, info: GraphQLResolveInfo, responseKey?: string): any;
|