add

actual fun add(data: Any): Task<DocumentReference>(source)

Adds a new document with an automatically generated id and data (a map of field values).

actual fun add(data: Any): Task<DocumentReference>(source)

Completes once the write is acknowledged, as on Android (addDocumentWithData returns the reference before that).

expect fun add(data: Any): Task<DocumentReference>(source)

Adds a new document with an automatically generated id and data (a map of field values).

actual fun add(data: Any): Task<DocumentReference>(source)

Adds a new document with an automatically generated id and data (a map of field values).

actual fun add(data: Any): Task<DocumentReference>(source)

Adds a new document with an automatically generated id and data (a map of field values).