MongoDB driver for Kotlin (coroutines) • opensavvy.ktmongo.coroutines.operations • CountOperations
CountOperations¶
interface CountOperations<Document : Any> : BaseOperations
Interface grouping MongoDB operations relating to counting documents.
Inheritors¶
Properties¶
context
¶
abstract val context:
Functions¶
count
¶
Counts how many documents exist in the collection.
Counts how many documents match predicate
in the collection.
countEstimated
¶
abstract suspend fun countEstimated(): Long
Counts all documents in the collection.