标签: java spring aggregation mongotemplate
请帮助我为低于Mongo Aggregation的Java等效代码编写代码。
>
db.exchangeRateMap.aggregate([ { "$addFields": { "exchangeRateMap": { "$objectToArray": "$someField" } } }, { "$unwind" : "$someField" }, { "$sort" : { "someField.date" : -1 } }
,
])