kmongo / org.litote.kmongo.coroutine / CoroutineFindPublisher / projection

projection

fun projection(projection: Bson): CoroutineFindPublisher<T> (source)

Sets a document describing the fields to return for all matching documents.

Parameters

projection - the project document.

Return
this

Mongodb
.driver.manual reference/method/db.collection.find/ Projection

fun projection(vararg projections: KProperty<*>): CoroutineFindPublisher<T> (source)

Sets a document describing the fields to return for all matching documents.

Parameters

projections - the properties of the returned fields

Return
this