count

open suspend override fun count(): Long(source)

Counts how many documents exist in the collection.

External resources

See also

Faster alternative when the result doesn't need to be exact.


open suspend override fun count(options: CountOptions<Document>.() -> Unit, predicate: FilterQuery<Document>.() -> Unit): Long(source)