API Reference
graphLifecycleTarget()
Creates a graph lifecycle target.
Import
import { graphLifecycleTarget } from "@graphrefly/ts/adapters/nestjs/native";
Signature
function graphLifecycleTarget(
target: DecoratorHostConstructor | object,
methodKey: string | symbol,
opts: Omit<GraphLifecycleProviderTarget<THost>, "target" | "methodKey"> = {},
): GraphLifecycleProviderTarget<THost>
Parameters
| Parameter | Type | Description |
|---|---|---|
target | DecoratorHostConstructor | object | Class or instance that owns the decorated method. |
methodKey | string | symbol | Method key on the decorated target. |
opts | Omit<GraphLifecycleProviderTarget<THost>, "target" | "methodKey"> | Options that configure the helper. |
Returns
The graph lifecycle target result.
Example
import { graphLifecycleTarget } from "@graphrefly/ts/adapters/nestjs/native";
Source
packages/ts/src/adapters/nestjs/native.ts