MongoDB request DSL • opensavvy.ktmongo.dsl.aggregation.stages • ProjectStageOperators • include
include¶
Explicitly includes field.
Note that fields that aren't mentioned in the $project stage are deleted (except the _id field, which must be explicitly excluded).
Example¶
External resources¶
open fun include(field: KProperty1<Document, *>)
Explicitly includes field.
Note that fields that aren't mentioned in the $project stage are deleted (except the _id field, which must be explicitly excluded).