Introduction
Transactions and atomic document writes help keep your data safe and correct when many changes happen at once.
When you need to update multiple documents and want all changes to succeed or fail together.
When you update only one document and want to make sure the change is complete and safe.
When you want to avoid partial updates that can cause wrong or broken data.
When you want to keep your data consistent even if something goes wrong during updates.