db.foo.find().limit(300)
won\'t do it. It still prints out only 20 documents.
db.foo.find().toArray() db.foo.find().forEach(printjs
You can use it inside of the shell to iterate over the next 20 results. Just type it if you see "has more" and you will see the next 20 items.
it