[DOCS-1897] Comment on: "ecosystem/tutorial/getting-started-with-java-driver.txt" Created: 09/Sep/13  Updated: 03/Nov/17  Resolved: 09/Sep/13

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

Type: Improvement Priority: Major - P3
Reporter: auto Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Documentation bug

Location: http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-java-driver/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:23.0) Gecko/20100101 Firefox/23.0
Screen Resolution: 1440 x 900
repo: docs-ecosystem
source: tutorial/getting-started-with-java-driver


Participants:
Days since reply: 10 years, 23 weeks, 2 days ago

 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



 Comments   
Comment by auto [ 09/Sep/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1897: java driver syntax issue
Branch: master
https://github.com/mongodb/docs-ecosystem/commit/b5440c8d744b630d9de8ca8c85b47d00583fc56b

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