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

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

    • Fully Compatible
    • ALL
    • Query 2019-12-16, Query 2019-12-30

      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.

            Assignee:
            katherine.wu@mongodb.com Katherine Wu (Inactive)
            Reporter:
            tomer.yakir@mongodb.com Tomer Yakir
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: