# Transactions in MongoDB

*noun*

say it: **“tran-ZAK-shunz in MONG-goh-DEE-BEE”** **/trænˈzækʃənz ɪn ˈmɑŋɡoʊˌdiˌbi/**

A group of changes in MongoDB, to one or more documents or collections, that all succeed together or are all undone.

## What is **Transactions in MongoDB**?

MongoDB supports multi-document **transactions**, so several changes succeed or fail together. With good embedding, most writes don't need them.

## In a sentence

- “Checkout uses **transactions in MongoDB** so the order and the stock change together.”
- “A single-document write is already all-or-nothing, so the shop needs **transactions in MongoDB** only for changes across documents.”

Level: Freelancer · [More MongoDB terms at this level](https://www.ask-codey.com/glossary?category=mongodb&level=4)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/transactions-in-mongodb
