API Reference
fromNestLifecycle()
D474 P1 Nest lifecycle hook ingress.
Import
import { fromNestLifecycle } from "@graphrefly/ts/adapters/nestjs";
Signature
function fromNestLifecycle(
graph: Graph,
opts: NestIngressOptions<THost, TPayload> = {},
): NestIngressBoundary<THost, TPayload>
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | NestIngressOptions<THost, TPayload> | Options that configure the helper. |
Returns
A NestIngressBoundary<THost, TPayload> value for the boundary or adapter.
Example
import { fromNestLifecycle } from "@graphrefly/ts/adapters/nestjs";
Source
packages/ts/src/adapters/nestjs.ts