This query generate a object with the key/value inside works as i expect
db.empdetails.aggregate( [ { $project: { reportInformationMap: { valu1: 1 } } } ] );
So in spring data i do:
Aggregation.project("reportInformationMap.valu1")
Spring data generate something like this:
{ "aggregate" : "__collection__" , "pipeline" : [ { "$project" : { "valu1" : "$reportInformationMap.valu1"}}
it work but gimme valu1 as root value. i need it as nest value of reportInformationMap.