Skip to main content

locatedError

Callable

  • locatedError(rawOriginalError: unknown, nodes: undefined | null | ASTNode | readonly ASTNode[], path?: Maybe<readonly (string | number)[]>): GraphQLError

  • Given an arbitrary value, presumably thrown while attempting to execute a GraphQL operation, produce a new GraphQLError aware of the location in the document responsible for the original Error.


    Parameters

    • rawOriginalError: unknown
    • nodes: undefined | null | ASTNode | readonly ASTNode[]
    • optionalpath: Maybe<readonly (string | number)[]>

    Returns GraphQLError