Transaction
A transaction, mirroring com.google.firebase.firestore.Transaction from the Firebase Android SDK: the writes are applied atomically when the Function returns. Reads inside a transaction (get) are synchronous on Android, the JVM and Apple platforms and are declared in the nonJs source set, as the JS SDK only reads asynchronously.
Types
The body of a transaction; may throw FirebaseFirestoreException to fail it.
Properties
Functions
Reads documentRef inside the transaction; the nonJsMain Transaction.get extension.
Reads documentRef inside the transaction. The JS SDK reads inside a transaction asynchronously, so on JS this throws UnsupportedOperationException: code that also targets JS uses the suspending dev.gitlive.firebase.firestore.Transaction.get instead.
Throws: the JS SDK reads inside a transaction asynchronously; use the suspending dev.gitlive.firebase.firestore.Transaction.get.
Throws: the JS SDK reads inside a transaction asynchronously; use the suspending dev.gitlive.firebase.firestore.Transaction.get.
Writes data (a map of field values) to documentRef, replacing the document.
Writes data (a map of field values) to documentRef according to options.
Writes data (see DocumentReference.setData) to documentRef in the transaction.
Writes data (see DocumentReference.setData) to documentRef in the transaction according to options.
Updates the fields in data of documentRef; fails if the document does not exist.
Updates fieldPath of documentRef to value and the further field path/value pairs in moreFieldsAndValues.
Updates field of documentRef to value and the further field/value pairs in moreFieldsAndValues.
Updates the fields in data (see DocumentReference.updateData) of documentRef in the transaction.