include

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

Creates a projection that includes all of the given properties.

Return

the projection

Parameters

properties

the field names