GraphReFlyTS

API Reference

toNestHttp()

D474 HTTP egress resolver.

The returned boundary owns only a host-private pending map. It never stores response/socket/ack handles in graph DATA and only resolves handles whose requestId (and optional bindingId) match an egress envelope.

Import

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

Signature

function toNestHttp(
	egress: Node<NestReplyEnvelope<TPayload>>,
	opts: ToNestHttpOptions<TPayload> = {},
): NestHttpBoundary<TPayload>

Parameters

ParameterTypeDescription
egressNode<NestReplyEnvelope<TPayload>>egress value used by the helper.
optsToNestHttpOptions<TPayload>Options that configure the helper.

Returns

A NestHttpBoundary<TPayload> value for the boundary or adapter.

Example

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

Source

packages/ts/src/adapters/nestjs.ts