count

fun <T> count(property: KProperty<T>): Bson

Creates a $count pipeline stage using the named field to store the result

Return

the $count pipeline stage @mongodb.driver.manual reference/operator/aggregation/count/ $count

Parameters

property

the data class field in which to store the count