I want to implement the following mongo query in oatpp
db.dashboard.aggregate([ {$sort:{blocks:-1}}, {$limit: 10} ]);
and I have the following oatpp code snippet which I have implemented
oatpp::Fields<oatpp::Any> list({});
list->push_back("listOfIP",oatpp::Fields<oatpp::Any>({"$group",
{{$sort: {blocks: -1}},{$limit: 10}}}));
enter code here
but getting compile-time error so please suggest to me the way to implement the above mongo query in oatpp.
question from:https://stackoverflow.com/questions/65600701/mongo-query-implementation-in-oatpp-web-framework