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

call deleteOne with an array in shell

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.5.3
    • Affects Version/s: 3.2.10
    • Component/s: Shell
    • Labels:
      None
    • Environment:
      macOSX (installed with brew)
    • Fully Compatible
    • OS X
    • Platforms 2016-10-31, Platforms 2017-02-13
    • 0

      db.mycoll.deleteOne([])
      2016-10-13T22:51:09.884+0200 E QUERY    [thread1] TypeError: err.hasWriteErrors is not a function :
      DBCollection.prototype.deleteOne@src/mongo/shell/crud_api.js:328:13
      @(shell):1:1
      

      I accidentally ran deleteOne with an array. When you do that you should get an error, but I think this is an internal bug in the shell.

      BTW: I couldn't find the right project for the shell, so I filed it under tools.

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            jaap@q42.nl Jaap Taal
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: