Skip to main content
Module

x/graphql_deno/mod.ts>locatedError

GraphQL-JS ported to Deno
Latest
function locatedError
import { locatedError } from "https://deno.land/x/graphql_deno@v15.0.0/mod.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>>