Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
276 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...