Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42410

Mongo Shell count helper command doesn't throw errors on invalid options

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Query 2019-12-16, Query 2019-12-30

      Description

      Following SERVER-40523 - running

      db.manual.count({},{"random": true})

      doesn't throw an error, but instead ignores the invalid option.

      Running

      db.runCommand({count: "manual", random: true})

      does throw an error as expected.
      Need to fix the shell helper command so it throws an error on invalid options.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              katherine.wu Katherine Wu
              Reporter:
              tomer.yakir Tomer Yakir
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: