ascending

fun ascending(vararg properties: KProperty<*>): Bson
fun ascending(properties: Iterable<KProperty<*>>): Bson

Create an index key for an ascending index on the given fields.

Return

the index specification @mongodb.driver.manual core/indexes indexes

Parameters

properties

the properties, which must contain at least one