How to use $in or $nin in mongo aggregation $group $cond

后端 未结 3 1891
说谎
说谎 2021-02-14 04:19

I want to achieve $sum with $cond by having $or on property:

db.collectionName.aggregate(
{
   \"$group\": {
     \"_id\":\'$created_at\',
     \"count\": {\"$su         


        
3条回答
提交回复
热议问题