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

      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

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: