descending

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

Create an index key for a descending 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