GraphReFlyTS

API Reference

GraphError()

D484 exception-oriented sugar over GraphFilter.

Import

import { GraphError } from "@graphrefly/ts/adapters/nestjs";

Signature

function GraphError(
	boundary: NestIngressBoundary<THost, TPayload>,
	opts: NestFilterDecoratorOptions<THost, TPayload> = {},
): GraphMethodDecorator

Parameters

ParameterTypeDescription
boundaryNestIngressBoundary<THost, TPayload>boundary value used by the helper.
optsNestFilterDecoratorOptions<THost, TPayload>Options that configure the helper.

Returns

A GraphMethodDecorator value.

Example

import { GraphError } from "@graphrefly/ts/adapters/nestjs";

Source

packages/ts/src/adapters/nestjs.ts