GraphReFlyTS

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

ParameterTypeDescription
targetDecoratorHostConstructor | objectClass or instance that owns the decorated method.
methodKeystring | symbolMethod key on the decorated target.
optsOmit<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