MongoDB aggregation: How to get the index of a document in a collection depending sorted by a document property

前端 未结 0 1200
失恋的感觉
失恋的感觉 2020-12-14 10:36

Assume I have a collection with millions of documents. Below is a sample of how the documents look like

[
    { _id:"1a1", points:[2,3,5,6] },
    {         


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