[DOCS-7494] Comment on: "primer/query.txt" Created: 23/Mar/16 Updated: 08/Dec/16 Resolved: 18/May/16 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 1 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
MongoDB 3.3.3, Mongo Java Driver 3.2.2 Location: https://docs.mongodb.org/getting-started/java/query/ |
||
| Participants: | |
| Days since reply: | 7 years, 46 weeks, 2 days ago |
| Epic Link: | docs-primer |
| Description |
|
db.getCollection("restaurants").find().sort(ascending("borough", "address.zipcode")); Doesn't work on Mongo Java driver 3.2.2, it doesn't recognize the .sort(ascending("")). Please, review the documentation! It's most of times DOESN'T work or NOT UPDATED! |
| Comments |
| Comment by Kay Kim (Inactive) [ 29/Mar/16 ] | |
|
Oh, actually, they are included in the Prereq section: | |
| Comment by Kay Kim (Inactive) [ 29/Mar/16 ] | |
|
Hi – Thanks for taking the time to file this ticket. The code example on the page work for me.
The same would go for if you are using the Filters helper. I recognize that we don't give the code sample for these import statements, rather it's just mentioned as a sentence:
If that is indeed the case, I can update this to include those import statements. |