MongoDB aggregation: How to get an object in an array that has the highest value and also satisfies another condition without using $reduce?

后端 未结 0 1399
攒了一身酷
攒了一身酷 2020-11-27 22:37

This question is a continuation from this question.

Let\'s say I have this data

[
    {id:0, points:-9, rank:true}
    {id:1, points:-49, rank:true}
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题