errors.d.ts 564 B

1234567891011
  1. import { GraphQLResolveInfo, ExecutionResult, GraphQLFormattedError } from 'graphql';
  2. export declare let ERROR_SYMBOL: any;
  3. export declare function annotateWithChildrenErrors(object: any, childrenErrors: ReadonlyArray<GraphQLFormattedError>): any;
  4. export declare function getErrorsFromParent(object: any, fieldName: string): {
  5. kind: 'OWN';
  6. error: any;
  7. } | {
  8. kind: 'CHILDREN';
  9. errors?: Array<GraphQLFormattedError>;
  10. };
  11. export declare function checkResultAndHandleErrors(result: ExecutionResult, info: GraphQLResolveInfo, responseKey?: string): any;