cqrsMessagingRecipe()
Build the optional D350/D351 CQRS messaging recipe.
Import
Section titled “Import”import { cqrsMessagingRecipe } from "@graphrefly/ts/cqrs/messaging";Signature
Section titled “Signature”function cqrsMessagingRecipe( graph: Graph, opts: CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent>,): CqrsMessagingRecipeBundle<TCommand>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | CqrsMessagingRecipeOptions<TPayload, TCommand, TEvent> | Options that configure the helper. |
Returns
Section titled “Returns”A bundle of graph-visible nodes for the recipe.
Example
Section titled “Example”import { cqrsMessagingRecipe } from "@graphrefly/ts/cqrs/messaging";Source
Section titled “Source”packages/ts/src/cqrs/messaging.ts