Latest
function locatedError
import { locatedError } from "https://dotland.deno.dev/x/graphql_deno@v15.0.0/lib/error/index.d.ts";

Given an arbitrary Error, 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

originalError: Error | GraphQLError
nodes: ASTNode | ReadonlyArray<ASTNode> | undefined
optional
path: Maybe<ReadonlyArray<string | number>>