Details
-
Improvement
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
Sabayon Linux x64
mongodb 2.4.8
*Location*: http://docs.mongodb.org/manual/reference/method/db.collection.find/#db.collection.find
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
*Referrer*: http://docs.mongodb.org/manual/core/cursors/
*Screen Resolution*: 1600 x 900
*repo*: docs
*source*: reference/method/db.collection.find
Sabayon Linux x64 mongodb 2.4.8 *Location*: http://docs.mongodb.org/manual/reference/method/db.collection.find/#db.collection.find *User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 *Referrer*: http://docs.mongodb.org/manual/core/cursors/ *Screen Resolution*: 1600 x 900 *repo*: docs *source*: reference/method/db.collection.find
Description
var cursor = db.collection.find();
cursor.forEach(printjson);
The above doesn't actually output anything, whereas the example on this page suggests that it should.