update
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): Transaction(source)
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): Transaction(source)
Deprecated (with error)
Replace with
import com.google.firebase.serialization.updateData
Content copied to clipboard
updateData(documentRef, data)Content copied to clipboard
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): Transaction(source)
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): Transaction(source)
Deprecated (with error)
Replace with
import com.google.firebase.serialization.updateData
Content copied to clipboard
updateData(documentRef, data)Content copied to clipboard
expect fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): Transaction(source)
Updates field of documentRef to value and the further field/value pairs in moreFieldsAndValues.
expect fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): Transaction(source)
Updates fieldPath of documentRef to value and the further field path/value pairs in moreFieldsAndValues.
Deprecated (with error)
update maps custom classes in the values with the Android SDK's reflection, which only exists on Android and the JVM; updateData maps @Serializable classes and plain values with kotlinx.serialization on every platform
Replace with
import com.google.firebase.serialization.updateData
Content copied to clipboard
updateData(documentRef, data)Content copied to clipboard
Updates the fields in data of documentRef; fails if the document does not exist.
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): Transaction(source)
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): Transaction(source)
Deprecated (with error)
Replace with
import com.google.firebase.serialization.updateData
Content copied to clipboard
updateData(documentRef, data)Content copied to clipboard
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): Transaction(source)
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): Transaction(source)
Deprecated (with error)
Replace with
import com.google.firebase.serialization.updateData
Content copied to clipboard
updateData(documentRef, data)Content copied to clipboard
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): Transaction(source)
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): Transaction(source)
Deprecated (with error)
Replace with
import com.google.firebase.serialization.updateData
Content copied to clipboard
updateData(documentRef, data)Content copied to clipboard