kmongo / org.litote.kmongo / include

include

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

Creates a projection that includes all given properties.

Parameters

properties - the field names

Return
the projection

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

Creates a projection that includes all of the given properties.

Parameters

properties - the field names

Return
the projection