ListCollectionsFlow

interface ListCollectionsFlow<out TResult : Any> : Flow<TResult>

Flow for ListCollections.

Since

3.0

Parameters

The type of the result.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun batchSize(batchSize: Int): ListCollectionsFlow<TResult>

Sets the number of documents to return per batch.

Link copied to clipboard
abstract suspend fun collect(collector: FlowCollector<TResult>)
Link copied to clipboard
abstract fun filter(filter: Bson?): ListCollectionsFlow<TResult>

Sets the query filter to apply to the query.

Link copied to clipboard
abstract suspend fun firstOrNull(): TResult?

Helper to return first result.

Link copied to clipboard
abstract fun maxTime(maxTime: Long, timeUnit: TimeUnit): ListCollectionsFlow<TResult>

Sets the maximum execution time on the server for this operation.