1
我的收藏是這樣的:有score
asc
如何在MongoDB中執行組合,排序和限制聚合?
group
與關鍵batch
year
location
sort
得到top 10
id, year, batch, location, score
的每個:"_id": ObjectId(""), "score": 500, "year": 2015, "batch": 1 "location": "Shenzhen"
我在做什麼是這個組
哪裏是在您的文檔的位置? –
@dev這是我的能力,我很想念這個 – roger