transactionRouting
The routing status of the events a mutation published, by the transactionID
the mutation returned. Only events of the caller’s tenants are returned.
Compare entries with the mutation’s eventCount:
eventCount: 0: nothing was published, there is nothing to route.- fewer entries than
eventCount: routing is not complete, ask again, but give up after a deadline: an entry can be missing for good. - as many entries as
eventCount: routing is complete. Each entry’s targets say what happened;workflowExecutions(where: {transactionID})lists the executions the transaction started.
Entries are kept for 72 hours.
Served by: workflow
Arguments
Section titled “Arguments”| Name | Type |
|---|---|
transactionID |
ID! |
Returns
Section titled “Returns”Example
Section titled “Example”Returns the routing status of the events that a mutation published, with one entry for each event the router has settled. Pass the transactionID that the mutation returned.
query GetTransactionRouting($transactionID: ID!) { transactionRouting(transactionID: $transactionID) { entries { eventID outcome recordedAt sequence targets { error kind reason runID signal workflow workflowID } tenantID } transactionID }}Variables
{ "transactionID": "<transaction ID>"}