GraphReFlyTS

API Reference

cqrsMessagingRecipe()

Build the optional D350/D351 CQRS messaging recipe.

Import

import { cqrsMessagingRecipe } from "@graphrefly/ts/cqrs/messaging";

Signature

function cqrsMessagingRecipe(
	graph: Graph,
	opts: CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>,
): CqrsMessagingRecipeBundle<TCommand>

Parameters

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
optsCqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>Options that configure the helper.

Returns

A bundle of graph-visible nodes for the recipe.

Example

import { cqrsMessagingRecipe } from "@graphrefly/ts/cqrs/messaging";

Source

packages/ts/src/cqrs/messaging.ts