kmongo / org.litote.kmongo / exclude

exclude

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

Creates a projection that excludes all of the given properties.

Parameters

properties - the field names

Return
the projection