GraphReFlyTS

API Reference

getGraphToken()

Get the injection token for a named feature graph.

Import

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

Signature

function getGraphToken(name: string): symbol

Parameters

ParameterTypeDescription
namestringStable name for the created node or helper.

Returns

A symbol value.

Example

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

Source

packages/ts/src/adapters/nestjs.ts