fun projection(projection: Bson): CoroutineFindPublisher<T>
(source)
Sets a document describing the fields to return for all matching documents.
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.
projections
- the properties of the returned fields
Return
this