API Reference
GraphReq()
D478 route-request decorator over an existing ingress boundary.
Import
import { GraphReq } from "@graphrefly/ts/adapters/nestjs";
Signature
function GraphReq(
boundary: NestIngressBoundary<THost, TPayload>,
opts: NestBoundaryDecoratorOptions<THost, TPayload> = {},
): GraphMethodDecorator
Parameters
| Parameter | Type | Description |
|---|---|---|
boundary | NestIngressBoundary<THost, TPayload> | boundary value used by the helper. |
opts | NestBoundaryDecoratorOptions<THost, TPayload> | Options that configure the helper. |
Returns
A GraphMethodDecorator value.
Example
import { GraphReq } from "@graphrefly/ts/adapters/nestjs";
Source
packages/ts/src/adapters/nestjs.ts