ditto-lib / live.ditto / DittoScopedWriteTransaction / insert

insert

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

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