kmongo / org.litote.kmongo / com.mongodb.client.FindIterable / projection

projection

fun <T> FindIterable<T>.projection(projection: String): FindIterable<T> (source)

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

Parameters

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.

Parameters

projections - the properties of the returned fields

Return
this