Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9397

Incorrect/incomplete syntax in node driver manual

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • DOCS Q3 W10-part_deux
    • drivers

    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"

      Attachments

        Activity

          People

            Unassigned Unassigned
            gitdoggo Git Doggo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 25 weeks, 2 days ago