MongoDB driver for Kotlin (synchronous) • opensavvy.ktmongo.sync.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 fun countEstimated(): Long
Counts all documents in the collection.