Rename drop to dropCollection ?

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Minor - P4
    • 1.7.4
    • Affects Version/s: None
    • Component/s: Usability
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Lucas Zamboulis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: