API Reference
cqrsWorkQueueRecipe()
Build the optional D350/D352 CQRS workQueue recipe.
Import
import { cqrsWorkQueueRecipe } from "@graphrefly/ts/cqrs/work-queue";
Signature
function cqrsWorkQueueRecipe(
graph: Graph,
opts: CqrsWorkQueueRecipeOptions<TCommand>,
): CqrsWorkQueueRecipeBundle<TCommand>
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | CqrsWorkQueueRecipeOptions<TCommand> | Options that configure the helper. |
Returns
A bundle of graph-visible nodes for the recipe.
Example
import { cqrsWorkQueueRecipe } from "@graphrefly/ts/cqrs/work-queue";
Source
packages/ts/src/cqrs/work-queue.ts