WriteBatch

actual class WriteBatch(source)
actual class WriteBatch(source)
expect class WriteBatch(source)

A batch of writes, mirroring com.google.firebase.firestore.WriteBatch from the Firebase Android SDK: applied atomically by commit.

actual class WriteBatch(source)
actual class WriteBatch(source)
actual class WriteBatch(source)

Types

Link copied to clipboard
actual fun interface Function
actual fun interface Function
expect fun interface Function

A function that fills a WriteBatch, for FirebaseFirestore.runBatch.

actual fun interface Function
actual fun interface Function
actual fun interface Function

Properties

Link copied to clipboard
val ios: <Error class: unknown class>

The underlying Firebase iOS SDK object.

Link copied to clipboard

The underlying Firebase JS SDK object.

The underlying Firebase JS SDK object.

Functions

Link copied to clipboard
actual fun commit(): <Error class: unknown class><Nothing?>
actual fun commit(): <Error class: unknown class><Nothing?>
expect fun commit(): <Error class: unknown class><Nothing?>

Applies the writes atomically.

actual fun commit(): <Error class: unknown class><Nothing?>
actual fun commit(): <Error class: unknown class><Nothing?>
actual fun commit(): <Error class: unknown class><Nothing?>
Link copied to clipboard
actual fun delete(documentRef: DocumentReference): WriteBatch
actual fun delete(documentRef: DocumentReference): WriteBatch
expect fun delete(documentRef: DocumentReference): WriteBatch

Deletes documentRef.

actual fun delete(documentRef: DocumentReference): WriteBatch
actual fun delete(documentRef: DocumentReference): WriteBatch
actual fun delete(documentRef: DocumentReference): WriteBatch
Link copied to clipboard
actual fun set(documentRef: DocumentReference, data: Any): WriteBatch
actual fun set(documentRef: DocumentReference, data: Any, options: SetOptions): WriteBatch
actual fun set(documentRef: DocumentReference, data: Any): WriteBatch
actual fun set(documentRef: DocumentReference, data: Any, options: SetOptions): WriteBatch
expect fun set(documentRef: DocumentReference, data: Any): WriteBatch

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

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

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

actual fun set(documentRef: DocumentReference, data: Any): WriteBatch
actual fun set(documentRef: DocumentReference, data: Any, options: SetOptions): WriteBatch
actual fun set(documentRef: DocumentReference, data: Any): WriteBatch
actual fun set(documentRef: DocumentReference, data: Any, options: SetOptions): WriteBatch
actual fun set(documentRef: DocumentReference, data: Any): WriteBatch
actual fun set(documentRef: DocumentReference, data: Any, options: SetOptions): WriteBatch
Link copied to clipboard
inline fun <T : Any> WriteBatch.setData(documentRef: DocumentReference, data: T): WriteBatch

Writes data (see DocumentReference.setData) to documentRef in the batch.

inline fun <T : Any> WriteBatch.setData(documentRef: DocumentReference, data: T, options: SetOptions): WriteBatch

Writes data (see DocumentReference.setData) to documentRef in the batch according to options.

Link copied to clipboard
actual fun update(documentRef: DocumentReference, data: Map<String, Any?>): WriteBatch
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch
actual fun update(documentRef: DocumentReference, data: Map<String, Any?>): WriteBatch
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch
expect fun update(documentRef: DocumentReference, data: Map<String, Any?>): WriteBatch

Updates the fields in data of documentRef; fails if the document does not exist.

expect fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch

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

expect fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch

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

actual fun update(documentRef: DocumentReference, data: Map<String, Any?>): WriteBatch
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch
actual fun update(documentRef: DocumentReference, data: Map<String, Any?>): WriteBatch
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch
actual fun update(documentRef: DocumentReference, data: Map<String, Any?>): WriteBatch
actual fun update(documentRef: DocumentReference, fieldPath: FieldPath, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch
actual fun update(documentRef: DocumentReference, field: String, value: Any?, vararg moreFieldsAndValues: Any?): WriteBatch
Link copied to clipboard

Updates the fields in data (see DocumentReference.updateData) of documentRef in the batch.