exclude

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

Creates a projection that excludes all of the given properties.

Return

the projection

Parameters

properties

the field names