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
| Parameter | Type | Description |
|---|---|---|
decisionNode | Node<NestReplyEnvelope<GraphGuardDecision>> | decision node value used by the helper. |
opts | NestGuardDecisionDecoratorOptions<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