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

Comment on: "ecosystem/tutorial/getting-started-with-java-driver.txt"

    XMLWordPrintableJSON

Details

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

    Description

      Under the "Getting A Single Document with A Query" section, for the mongo query db.things.find({j: {$ne: 3}, k: {$gt: 10} }), the code is missing a parantheses.

      Given:
      BasicDBObject query = new BasicDBObject("j", new BasicDBObject("$ne", 3).
      append("k", new BasicDBObject("$gt", 10));

      Should be:
      BasicDBObject query = new BasicDBObject("j", new BasicDBObject("$ne", 3)).
      append("k", new BasicDBObject("$gt", 10));

      Small documentation bug - just thought I'd let you guys know

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            auto auto
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 23 weeks, 2 days ago