GraphReFlyTS

API Reference

cqrsMessageAckCommands()

Creates a CQRS message ack commands.

Import

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

Signature

function cqrsMessageAckCommands(
	graph: Graph,
	opts: {
		readonly name?: string;
		readonly commands: Node<CqrsCommand>;
		readonly status: Node<CqrsStatus>;
		readonly issues?: Node<DataIssue>;
		readonly ackRejected?: boolean;
	},
): Node<MessageBusCommand>

Parameters

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
opts{ readonly name?: string; readonly commands: Node<CqrsCommand>; readonly status: Node<CqrsStatus>; readonly issues?: Node<DataIssue>; readonly ackRejected?: boolean; }Options that configure the helper.

Returns

The CQRS message ack commands result.

Example

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

Source

packages/ts/src/cqrs/messaging.ts