documentFlow

fun Collection.documentFlow(id: String, fetchContext: CoroutineContext = Dispatchers.IO): Flow<Document?>

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)

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)

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