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

Warn about operations on non-existing collections in Mongo Shell

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Shell
    • None

    Description

      When user tries to perform a command on a collection that doesn't exist then the mongo shell accepts it silently. In some cases that's fine. For example inserting a document creates a collection if it doesn't exist. However, there are other situations when it would be useful to get a warning about non-existing collection. Especially db.collection.update doesn't show any result and hence it's hard to distinguish if the command was correct (in terms of collection name).

      Attachments

        Activity

          People

            Unassigned Unassigned
            LukaszWiktor ?ukasz Wiktor [X]
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: