documentFlow
fun Collection.documentFlow(id: String, fetchContext: CoroutineContext = Dispatchers.IO): Flow<Document?>(source)
A flow of a document's current state. Emits null if document is deleted. filterNotNull if this is undesired.
Parameters
id
Document ID
fetchContext
CoroutineContext to fetch the document on; defaults to Dispatchers.IO
Deprecated
Use defaultCollection.documentFlow()
Replace with
defaultCollection.documentFlow(id)
Content copied to clipboard
A flow of a document's current state. Emits null if document is deleted. filterNotNull if this is undesired.
Parameters
id
Document ID
Deprecated
Use defaultCollection.documentFlow()
Replace with
defaultCollection.documentFlow(id, fetchContext)
Content copied to clipboard
A flow of a document's current state. Emits null if document is deleted. filterNotNull if this is undesired.
Parameters
id
Document ID
fetchContext
CoroutineContext to fetch the document on; defaults to Dispatchers.IO