Begin a multi-document transaction.
Section: Transactions
Start a transaction
javascript
javascript
session.startTransaction()Explanation
Transactions are available on deployments that support them, such as replica sets.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Transactions