kmongo / org.litote.kmongo / project

project

fun project(projection: Bson): Bson (source)

Creates a $project pipeline stage for the specified getProjection

Parameters

projection - the getProjection

Return
the $project pipeline stage

See Also

Projections

Mongodb
.driver.manual reference/operator/aggregation/project/ $project

fun project(vararg properties: KProperty<*>): Bson (source)
fun project(vararg properties: Pair<KProperty<*>, Any?>): Bson (source)
fun project(properties: Map<out KProperty<*>, Any?>): Bson (source)

Creates a $project pipeline stage for all specified properties

Parameters

properties - the properties to project

Return
the $project pipeline stage

See Also

Projections

Mongodb
.driver.manual reference/operator/aggregation/project/ $project

fun project(vararg projections: Bson): Bson (source)

Creates a $project pipeline stage for all specified properties

Parameters

projections - the properties to project

Return
the $project pipeline stage

See Also

Projections

Mongodb
.driver.manual reference/operator/aggregation/project/ $project