tags:

views:

36

answers:

2
   db.foo.find().limit(300)

won't do it... it still prints out 20

   db.foo.find().toArray()
   db.foo.find().forEach(printjson)

will both print out very expanded view of each document instead of the 1-line version for find():

A: 

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.

halfdan
oh it is really about how to print out all without using `it`
動靜能量
+2  A: 

DBQuery.shellBatchSize = 300

Thilo