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

Rename drop to dropCollection ?

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.7.4
    • Affects Version/s: None
    • Component/s: Usability
    • None

      Would it be possible to rename db.foo.drop() to db.foo.dropCollection() ? It is quite easy to confuse this on the shell, e.g. type db.foo.drop(

      {x:1}

      ) instead of db.foo.remove(

      {x:1}

      ).

      If not, then at least db.foo.drop(

      {x:1}

      ) should throw an exception rather than proceed to drop the collection, since most likely it has been confused with remove.

            Assignee:
            Unassigned Unassigned
            Reporter:
            skoufos Lucas Zamboulis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: