Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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,
nodes:
| ReadonlyArray<ASTNode>
| undefined
| null
,
path?: Maybe<ReadonlyArray<string | number>>,
): GraphQLError;
§
locatedError(rawOriginalError: unknown, nodes: ASTNode | ReadonlyArray<ASTNode> | undefined | null, path?: Maybe<ReadonlyArray<string | number>>): GraphQLError
[src]

§Parameters

§
rawOriginalError: unknown
[src]
§
nodes: ASTNode | ReadonlyArray<ASTNode> | undefined | null
[src]
§
path?: Maybe<ReadonlyArray<string | number>> optional
[src]