MongoDB aggregation: conditional aggregation stages

后端 未结 0 1630
误落风尘
误落风尘 2020-12-03 01:36

Is it possible to have conditional aggregation stages depending on returned variables from aggregation?

For example

User.aggregate([
    // if user has         


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