[DOCS-2640] Comment on: "manual/reference/method/cursor.forEach.txt" Created: 02/Feb/14  Updated: 05/Feb/14  Resolved: 03/Feb/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.0

Type: Improvement Priority: Trivial - P5
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/reference/method/cursor.forEach/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36
Referrer: http://docs.mongodb.org/manual/reference/method/cursor.map/
Screen Resolution: 1366 x 768
repo: docs
source: reference/method/cursor.forEach


Participants:
Days since reply: 10 years, 2 weeks, 2 days ago

 Description   

Object Cursor has no methd 'forEach' O.o

Mongo 2.4.8-2.4.9



 Comments   
Comment by Kay Kim (Inactive) [ 03/Feb/14 ]

> db.version()
2.4.8
> db.test.find()
> db.test.insert( { x: 1 } )
> db.test.insert( { x: 2 } )
> db.test.insert( { x: 3 } )
> db.test.insert( { x: 4 } )
> db.version()
2.4.8
> db.test.find().forEach( function(myDoc) { print ("x=" + myDoc.x); } );
x=1
x=2
x=3
x=4

> db.version()
2.4.9
> db.test.find().forEach( function(myDoc) { print ("x=" + myDoc.x); } );
x=1
x=2
x=3
x=4
x=5
 

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