GraphReFlyTS

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

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
optsCqrsWorkQueueRecipeOptions<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