Skip to main content
Latest
function locatedError
import { locatedError } from "https://deno.land/x/kilatgraphql@16.6.0-1/mod.ts";

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:
| ReadonlyArray<ASTNode>
| undefined
| null
optional
path: Maybe<ReadonlyArray<string | number>>