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

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Tomer Yakir
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: