[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
At Sorting:

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.

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