Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-580

Make dropIndexes() argument optional

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.10.0
    • Affects Version/s: None
    • Component/s: Shell API
    • None
    • 3
    • Iteration Yucca
    • Not Needed

      The old shell required no argument and would drop all indexes, mongosh currently does require an explicit argument.

      We either make the argument optional, to align with the old shell, or we document the current situation. The no-argument version is used in University courses, but makes it easier to accidentally drop all indexes without intending to.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: