Skip to main content
MongoDB

MongoDB - Abort transaction

MongoDB - Abort transaction

Undoes every operation performed inside a MongoDB transaction session started with MongoDB: Start transaction. Useful for error handling — when a failure happens, aborting the transaction guarantees that no partial change is applied to the database.


Options

Transaction

Reference to the MongoDB: Start transaction action whose session will be aborted.

Returns

This action has no returns.

Rules and Conditions

  • The Transaction field is required and must reference a MongoDB: Start transaction action.
  • After aborting, every operation performed inside the transaction is undone.
  • This action is usually used in the flow's error handling blocks.