MongoDB driver for Kotlin (coroutines) • opensavvy.ktmongo.coroutines • MongoIterable
MongoIterable¶
interface MongoIterable<Document : Any>
Streaming-ready iterable client to read data from the database.
Inheritors¶
- JvmMongoIterable
Functions¶
asFlow¶
abstract fun asFlow(): ERROR CLASS: Symbol not found for Flow
Streams the results of this response into a Flow.
asSequence¶
open fun asSequence(): ERROR CLASS: Symbol not found for Sequence
first¶
Returns the first document found by this query, or throws an exception.
firstOrNull¶
abstract suspend fun firstOrNull(): Document?
Returns the first document found by this query, or null if none were found.
forEach¶
Executes action for each document returned by this query.
toList¶
Reads the entirety of this response into a List.
toSequence¶
open fun toSequence(): ERROR CLASS: Symbol not found for Sequence
toSet¶
Reads the entirety of this response into a Set.