GraphReFlyTS

API Reference

GraphGuardDecision()

D484 guard decision egress decorator over an existing reply-correlated decision node.

Import

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

Signature

function GraphGuardDecision(
	decisionNode: Node<NestReplyEnvelope<GraphGuardDecision>>,
	opts: NestGuardDecisionDecoratorOptions<THost>,
): GraphMethodDecorator

Parameters

ParameterTypeDescription
decisionNodeNode<NestReplyEnvelope<GraphGuardDecision>>decision node value used by the helper.
optsNestGuardDecisionDecoratorOptions<THost>Options that configure the helper.

Returns

A GraphMethodDecorator value.

Example

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

Source

packages/ts/src/adapters/nestjs.ts