locatedError
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.
function locatedError(
rawOriginalError: unknown,
path?: Maybe<ReadonlyArray<string | number>>,
): GraphQLError;