Mongo get 10 documents at a certain index in the collection

后端 未结 0 593
醉话见心
醉话见心 2020-12-15 05:05

How can I get 10 documents at a certain index of a collection in mongo?

var amount = 10;
db.myCollection.find(index, amount);
相关标签:
回答
  • 消灭零回复
提交回复
热议问题