Skip to content
PACKAGES

cqrsEventOutboxCommands()

Creates a CQRS event outbox commands.

import { cqrsEventOutboxCommands } from "@graphrefly/ts/cqrs/messaging";
function cqrsEventOutboxCommands(
graph: Graph,
events: Node<CqrsEvent<TEvent>>,
topic: string,
opts: { readonly name?: string } = {},
): Node<MessageBusCommand>
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
eventsNode<CqrsEvent<TEvent>>Event node or event collection to consume.
topicstringtopic value used by the helper.
opts{ readonly name?: string }Options that configure the helper.

The CQRS event outbox commands result.

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

packages/ts/src/cqrs/messaging.ts