GraphReFlyTS

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

ParameterTypeDescription
boundaryNestIngressBoundary<THost, TPayload>boundary value used by the helper.
optsNestBoundaryDecoratorOptions<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