ditto-lib / live.ditto / DittoCollection / findByID

findByID

fun findByID(id: String): DittoPendingIDSpecificOperation

Generates a DittoPendingIDSpecificOperation with the provided document ID that can be used to find the document at a point in time or you can chain a call to observe, observeLocal, or subscribe if you want to get updates about the document over time.

Parameters

id - the ID of the document.

Return
a DittoPendingIDSpecificOperation that you can chain function calls to either get the document immediately or get updates about it over time.