Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
*Location*: http://docs.mongodb.org/getting-started/node/query/
*User-Agent*: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0
*Referrer*: http://docs.mongodb.org/getting-started/node/insert/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: query
Description
The name of the function in the text does not match the name of the function in the snippets.
You can find the following text under "Query for All Documents in a Collection":
Define a findDocuments function as follows:
var findRestaurants = [definition...] |
Call the findDocuments function.
MongoClient.connect(url, function(err, db) { |
assert.equal(null, err); |
findRestaurants(db, function() { |
db.close();
|
});
|
});
|