Skip to main content
function resolveFieldValueOrError
import { resolveFieldValueOrError } from "https://deno.land/x/graphql_deno@v15.0.0/lib/execution/execute.d.ts";

Isolates the "ReturnOrAbrupt" behavior to not de-opt the resolveField function. Returns the result of resolveFn or the abrupt-return Error object.

Parameters

exeContext: ExecutionContext
fieldDef: GraphQLField<any, any>
fieldNodes: ReadonlyArray<FieldNode>
resolveFn: GraphQLFieldResolver<any, any>
source: any

Returns

Error | any