fun <T> FindIterable<T>.projection(projection: String): FindIterable<T>
(source)
Sets a document describing the fields to return for all matching documents.
projection
- the project document
Return
this
fun <T> FindIterable<T>.projection(vararg projections: KProperty<*>): FindIterable<T>
(source)
Sets a document describing the fields to return for all matching documents.
projections
- the properties of the returned fields
Return
this