GraphReFlyTS

API Reference

getNodeToken()

Get the injection token for a node at a qualified path.

Import

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

Signature

function getNodeToken(path: string): symbol

Parameters

ParameterTypeDescription
pathstringpath value used by the helper.

Returns

A symbol value.

Example

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

Source

packages/ts/src/adapters/nestjs.ts