Skip to content
PACKAGES

cqrsWorkQueueRecipe()

Build the optional D350/D352 CQRS workQueue recipe.

import { cqrsWorkQueueRecipe } from "@graphrefly/ts/cqrs/work-queue";
function cqrsWorkQueueRecipe(
graph: Graph,
opts: CqrsWorkQueueRecipeOptions<TCommand>,
): CqrsWorkQueueRecipeBundle<TCommand>
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
optsCqrsWorkQueueRecipeOptions<TCommand>Options that configure the helper.

A bundle of graph-visible nodes for the recipe.

import { cqrsWorkQueueRecipe } from "@graphrefly/ts/cqrs/work-queue";

packages/ts/src/cqrs/work-queue.ts