Transactions and batched writes | Firestore | Firebase
A guide to using transactions and batched writes in Cloud Firestore to perform atomic operations on your data.