GraphReFlyTS

API Reference

lowerHttpReplyPayload()

Lowers HTTP reply payload.

Import

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

Signature

function lowerHttpReplyPayload(
	payload: unknown,
	host: THost,
	opts: { readonly issueResponse?: NestIssueResponse<THost> } = {},
): NestHttpResponsePayload

Parameters

ParameterTypeDescription
payloadunknownPayload to lower or wrap.
hostTHostHost object from the framework boundary.
opts{ readonly issueResponse?: NestIssueResponse<THost> }Options that configure the helper.

Returns

The lower HTTP reply payload result.

Example

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

Source

packages/ts/src/adapters/nestjs.ts