GraphReFlyTS

API Reference

GraphHttpReply()

D478 HTTP reply decorator over an existing reply node.

Import

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

Signature

function GraphHttpReply(
	replyNode: Node<NestReplyEnvelope<TPayload>>,
	opts: NestHttpReplyDecoratorOptions<THost>,
): GraphMethodDecorator

Parameters

ParameterTypeDescription
replyNodeNode<NestReplyEnvelope<TPayload>>reply node value used by the helper.
optsNestHttpReplyDecoratorOptions<THost>Options that configure the helper.

Returns

A GraphMethodDecorator value.

Example

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

Source

packages/ts/src/adapters/nestjs.ts