Skip to content

Derive fields for aggregation $project stage from a given type. [DATAMONGO-2200] #3065

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions