Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
-
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
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
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 ![]()