[DOCS-9397] Incorrect/incomplete syntax in node driver manual Created: 29/Nov/16 Updated: 19/Aug/19 Resolved: 19/Aug/19 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | drivers |
| Affects Version/s: | DOCS Q3 W10-part_deux |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Git Doggo | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | Cleanup | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 4 years, 25 weeks, 2 days ago |
| Description |
|
https://mongodb.github.io/node-mongodb-native/markdown-docs/queries.html Two options are given : if 2+ arguments, then you can write 'asc' or 'desc', with a single ascending argument, you don't need anything but the tag. But what about a single descending argument ? I found that with arrays I can't use 'asc' and 'desc', it's not processed and always acts as 'asc'. I found something that worked : { "sort": { "name" : -1 }}; I don't know exactly how to edit the docs, but I didn't want this to be lost. Sorting anything by newest is pretty trivial. Also there's a type on the line right under "Sorting", "acieved" instead of "achieved" |
| Comments |
| Comment by Nathan Leniz [ 19/Aug/19 ] |
|
Closing this issue as sorting will definitely be captured in the Node redesign. |