set

actual fun set(documentRef: DocumentReference, data: Any): WriteBatch(source)

Deprecated (with error)

Replace with

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

actual fun set(documentRef: DocumentReference, data: Any, options: SetOptions): WriteBatch(source)

Deprecated (with error)

Replace with

import com.google.firebase.serialization.setData
setData(documentRef, data, options)
actual fun set(documentRef: DocumentReference, data: Any): WriteBatch(source)

Deprecated (with error)

Replace with

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

actual fun set(documentRef: DocumentReference, data: Any, options: SetOptions): WriteBatch(source)

Deprecated (with error)

Replace with

import com.google.firebase.serialization.setData
setData(documentRef, data, options)
expect fun set(documentRef: DocumentReference, data: Any): WriteBatch(source)

Deprecated (with error)

set maps a custom class with the Android SDK's reflection, which only exists on Android and the JVM; setData maps a @Serializable class, or a plain map, with kotlinx.serialization on every platform

Replace with

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

Writes data (a map of field values) to documentRef, replacing the document.


expect fun set(documentRef: DocumentReference, data: Any, options: SetOptions): WriteBatch(source)

Deprecated (with error)

set maps a custom class with the Android SDK's reflection, which only exists on Android and the JVM; setData maps a @Serializable class, or a plain map, with kotlinx.serialization on every platform

Replace with

import com.google.firebase.serialization.setData
setData(documentRef, data, options)

Writes data (a map of field values) to documentRef according to options.

actual fun set(documentRef: DocumentReference, data: Any): WriteBatch(source)

Deprecated (with error)

Replace with

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

actual fun set(documentRef: DocumentReference, data: Any, options: SetOptions): WriteBatch(source)

Deprecated (with error)

Replace with

import com.google.firebase.serialization.setData
setData(documentRef, data, options)
actual fun set(documentRef: DocumentReference, data: Any): WriteBatch(source)

Deprecated (with error)

Replace with

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

actual fun set(documentRef: DocumentReference, data: Any, options: SetOptions): WriteBatch(source)

Deprecated (with error)

Replace with

import com.google.firebase.serialization.setData
setData(documentRef, data, options)
actual fun set(documentRef: DocumentReference, data: Any): WriteBatch(source)

Deprecated (with error)

Replace with

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

actual fun set(documentRef: DocumentReference, data: Any, options: SetOptions): WriteBatch(source)

Deprecated (with error)

Replace with

import com.google.firebase.serialization.setData
setData(documentRef, data, options)