Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drash/src/services/graphql/graphql.ts>GraphQL.locatedError

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
function GraphQL.locatedError
import { GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/graphql.ts";
const { locatedError } = GraphQL;

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