cqrsEventOutboxCommands()
Creates a CQRS event outbox commands.
Import
Section titled “Import”import { cqrsEventOutboxCommands } from "@graphrefly/ts/cqrs/messaging";Signature
Section titled “Signature”function cqrsEventOutboxCommands( graph: Graph, events: Node<CqrsEvent<TEvent>>, topic: string, opts: { readonly name?: string } = {},): Node<MessageBusCommand>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
events | Node<CqrsEvent<TEvent>> | Event node or event collection to consume. |
topic | string | topic value used by the helper. |
opts | { readonly name?: string } | Options that configure the helper. |
Returns
Section titled “Returns”The CQRS event outbox commands result.
Example
Section titled “Example”import { cqrsEventOutboxCommands } from "@graphrefly/ts/cqrs/messaging";Source
Section titled “Source”packages/ts/src/cqrs/messaging.ts