CoroutineMongoFindIterable¶
interface CoroutineMongoFindIterable<Document : Any> : MongoIterable<Document>
Streaming-capable iterable cursor to read data from the database.
The Coroutine client provides a coroutine-aware API which internally uses the official Kotlin driver.
This type wraps a FindFlow from the official driver. See also CoroutineMongoAggregateIterable.
External resources¶
Functions¶
asFlow¶
asOfficial¶
abstract fun asOfficial(): FindFlow<Document>
Obtains the underlying MongoDB flow from the official Kotlin driver.
asSequence¶
open fun asSequence(): Sequence<Document>
first¶
firstOrNull¶
abstract suspend fun firstOrNull(): Document?
forEach¶
toList¶
toSequence¶
open fun toSequence(): Sequence<Document>