ditto-lib / live.ditto / DittoWriteTransaction / updateByID

updateByID

fun updateByID(collectionName: String, id: String, newDocument: Map<String, Any?>): Unit

Updates a document, referenced by its ID, with the data in the new document provided.

Parameters

collectionName - the name of the collection that the document is in.

id - the ID of the document to update.

newDocument - the new document whose data should be used to update the existing document.