processEventOutboxCommands()
Creates a process event outbox commands.
Import
Section titled “Import”import { processEventOutboxCommands } from "@graphrefly/ts/orchestration/messaging";Signature
Section titled “Signature”function processEventOutboxCommands( graph: Graph, events: Node<ProcessEvent<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<ProcessEvent<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 process event outbox commands result.
Example
Section titled “Example”import { processEventOutboxCommands } from "@graphrefly/ts/orchestration/messaging";Source
Section titled “Source”packages/ts/src/orchestration/messaging.ts