GraphReFlyTS

API Reference

bindingRequestId()

Creates a binding request ID.

Import

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

Signature

function bindingRequestId(
	host: THost,
	binding: NestBoundaryBindingMeta,
	fallback?: string | ((host: THost) => string | undefined),
): string | undefined

Parameters

ParameterTypeDescription
hostTHostHost object from the framework boundary.
bindingNestBoundaryBindingMetaNest boundary binding metadata.
fallbackstring | ((host: THost) => string | undefined)fallback value used by the helper.

Returns

The binding request ID result.

Example

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

Source

packages/ts/src/adapters/nestjs.ts