ditto / live.ditto / DittoScopedWriteTransaction / insert

insert

@JvmOverloads fun <T : Any> insert(value: T, id: DittoDocumentID? = null, isDefault: Boolean = false): DittoDocumentID

Inserts a document into the scoped collection and returns the document's ID.