project

fun project(projection: Bson): Bson

Creates a $project pipeline stage for the specified getProjection

Return

the $project pipeline stage

Parameters

projection

the getProjection

See also

Projections

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

Creates a $project pipeline stage for all specified properties

Return

the $project pipeline stage

Parameters

properties

the properties to project

See also

Projections

fun project(vararg projections: Bson): Bson

Creates a $project pipeline stage for all specified properties

Return

the $project pipeline stage

Parameters

projections

the properties to project

See also

Projections