[DOCS-5584] Comment on: "manual/reference/method/cursor.toArray.txt" Created: 08/Jun/15  Updated: 03/Nov/17  Resolved: 08/Jun/15

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

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 8.1,
db version v3.0.3

Location: http://docs.mongodb.org/manual/reference/method/cursor.toArray/
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36
Screen Resolution: 1440 x 900
repo: docs
source: reference/method/cursor.toArray


Participants:
Days since reply: 8 years, 36 weeks, 2 days ago

 Description   

var query = {};
var projection =

{"State":1, "Temperature":1}

;

var cursor = db.collection("data").find(query, projection);
var list = cursor.toArray();

Return error: MongoError: callback is mandatory



 Comments   
Comment by Kay Kim (Inactive) [ 08/Jun/15 ]

Emailed reporter with link to node.js cursor.toArray() api doc.

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