[DOCS-5942] Comment on: "primer/query.txt" Created: 31/Jul/15  Updated: 03/Nov/17  Resolved: 28/Feb/16

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

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

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


Participants:
Days since reply: 8 years, 28 weeks, 5 days ago

 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();
  });
});


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