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
| Parameter | Type | Description |
|---|---|---|
replyNode | Node<NestReplyEnvelope<TPayload>> | reply node value used by the helper. |
opts | NestHttpReplyDecoratorOptions<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