I'm seeking something where I can thread through multiple updates to multiple firebase.database.References
(before performing a commit) a single object and then commit that at the end and if it is unsuccessful no changes are made to any of my Firebase References
.
Does this exist? the firebase.database.Transaction
I thought would be similar since it is an atomic update and it does involve a callback which says if it has been committed or not, but the update function, I believe, is only for a single object, and the function doesn't seem to return a transactionId or something I could pass to other firebase.database.Transactions
s or something.
UPDATE This transaction's update seems to return a Transaction which would lend itself to perhaps chaining: https://firebase.google.com/docs/reference/js/firebase.firestore.Transaction
however this is different from the other Transaction: