Skip to content

MultiplatformMongoIterable

Streaming-capable iterable cursor to read data from the database.

External resources

Functions

asFlow

abstract fun asFlow(): Flow<Document>

asSequence

first

abstract suspend fun first(): Document

firstOrNull

abstract suspend fun firstOrNull(): Document?

forEach

abstract suspend fun forEach(action: suspend (Document) -> Unit)

toList

open suspend fun toList(): List<Document>

toSequence

toSet

open suspend fun toSet(): Set<Document>