sort by array length mongodb in golang?

前端 未结 0 1120
轮回少年
轮回少年 2020-11-30 07:17

I am trying to sort a search by the size of an array, I tried to do the following in mongodb and it worked:

db.getCollection(\'tweet\').aggregate({ $unwind:\'         


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