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
Could always do:
db.foo.find().forEach(function(f){print(tojson(f, '', true));});
To get that compact view.
Also, I find it very useful to limit the fields returned by the find so:
db.foo.find({},{name:1}).forEach(function(f){print(tojson(f, '', true));});
which would return only the _id and name field from foo.