GraphReFlyTS

API Reference

processEventOutboxCommands()

Creates a process event outbox commands.

Import

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

Signature

function processEventOutboxCommands(
	graph: Graph,
	events: Node<ProcessEvent<TEvent>>,
	topic: string,
	opts: { readonly name?: string } = {},
): Node<MessageBusCommand>

Parameters

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.

Returns

The process event outbox commands result.

Example

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

Source

packages/ts/src/orchestration/messaging.ts