descendingIndex

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

Create an index key for a descending index on the given fields.

Return

the index specification

Parameters

properties

the properties, which must contain at least one