Closed
Description
Christoph Strobl opened DATAMONGO-2200 and commented
By default the $project
stage of an aggregation includes nothing but the _id
field of the source document. So one has to include each and every field by hand.
project("firstname", "lastname", ...
It would be a nice addition if we could read the fields from a given type
project(Person.class)
Referenced from: pull request #748