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
| Parameter | Type | Description |
|---|---|---|
boundary | NestIngressBoundary<THost, TPayload> | boundary value used by the helper. |
opts | NestFilterDecoratorOptions<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