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

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

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: