Skip to content
PACKAGES

cqrsMessagingRecipe()

Build the optional D350/D351 CQRS messaging recipe.

import { cqrsMessagingRecipe } from "@graphrefly/ts/cqrs/messaging";
function cqrsMessagingRecipe(
graph: Graph,
opts: CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>,
): CqrsMessagingRecipeBundle<TCommand>
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
optsCqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>Options that configure the helper.

A bundle of graph-visible nodes for the recipe.

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

packages/ts/src/cqrs/messaging.ts