Skip to content
PACKAGES

processEventOutboxCommands()

Creates a process event outbox commands.

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

The process event outbox commands result.

import { processEventOutboxCommands } from "@graphrefly/ts/orchestration/messaging";

packages/ts/src/orchestration/messaging.ts