Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5942

Comment on: "primer/query.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None

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

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            mafagafogigante Bernardo Sulzbach
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 28 weeks, 5 days ago