update

actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch(source)
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch(source)

actual fun update(documentRef: DocumentReference, data: Map<String, Any?>): WriteBatch(source)

Deprecated (with error)

Replace with

import com.google.firebase.serialization.updateData
updateData(documentRef, data)
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch(source)
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch(source)

actual fun update(documentRef: DocumentReference, data: Map<String, Any?>): WriteBatch(source)

Deprecated (with error)

Replace with

import com.google.firebase.serialization.updateData
updateData(documentRef, data)
expect fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch(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?): WriteBatch(source)

Updates fieldPath of documentRef to value and the further field path/value pairs in moreFieldsAndValues.


expect fun update(documentRef: DocumentReference, data: Map<String, Any?>): WriteBatch(source)

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
updateData(documentRef, data)

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?): WriteBatch(source)
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch(source)

actual fun update(documentRef: DocumentReference, data: Map<String, Any?>): WriteBatch(source)

Deprecated (with error)

Replace with

import com.google.firebase.serialization.updateData
updateData(documentRef, data)
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch(source)
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch(source)

actual fun update(documentRef: DocumentReference, data: Map<String, Any?>): WriteBatch(source)

Deprecated (with error)

Replace with

import com.google.firebase.serialization.updateData
updateData(documentRef, data)
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch(source)
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch(source)

actual fun update(documentRef: DocumentReference, data: Map<String, Any?>): WriteBatch(source)

Deprecated (with error)

Replace with

import com.google.firebase.serialization.updateData
updateData(documentRef, data)