[DOCS-2529] Comment on: "manual/reference/method/db.collection.find.txt" Created: 14/Jan/14  Updated: 03/Nov/17  Resolved: 17/Jan/14

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Improvement Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


Participants:
Days since reply: 10 years, 5 weeks, 1 day ago

 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.


Generated at Thu Feb 08 07:43:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.