The executeFirestoreBatch
utility streamlines the process of executing multiple Firestore operations in a batch. This is crucial for ensuring atomic transactions across different documents in Firestore, where either all operations succeed or none at all.
executeFirestoreBatch
function simplifies this by batching operations, ensuring consistency and integrity of your Firestore data.
FirestoreOperation
objects, specifying the operation type, document reference, and data for each operation:
executeFirestoreBatch
to perform them as an atomic transaction:
executeFirestoreBatch
automatically chunks them into smaller groups, adhering to Firestore’s limitations on batch size.