Skip to content

Support aggregation expression on fields projection. #3583

Closed
@christophstrobl

Description

@christophstrobl

MongoDB allows using aggregation expressions as part of the fields projection as shown below.

db.getCollection('person').find({}, { "firstname" : 1, "lastname" : {"$toUpper" : "$lastname"}})

Initial Support:

  • Pass on a given expression projection to the server as is.
  • The query.fields object should be able to accept an expression eg. by using a BasicQuery.
  • The @Query annotation should parse the fields attribute holding an expression.

Final Support: (might require a follow up ticket)

  • Map expressions against domain types.
  • Support AggregationExpression via Field projection API.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions