Create a session for transactional work.
Section: Transactions
Start a session
javascript
javascript
const session = db.getMongo().startSession()Explanation
Transactions are associated with a client session.
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