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

Throw a method removed error for things deprecated at 4.0

    • Type: Icon: Story Story
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.3.1
    • Affects Version/s: None
    • Component/s: Embedded Shell, Shell API
    • Labels:
      None
    • 2
    • Needed
    • Hide

      Methods/commands that are deprecated since MongoDB 4.0 are not supported in mongosh. To let the users know and encourage them to not use them, we throw an exception.

      Show
      Methods/commands that are deprecated since MongoDB 4.0 are not supported in mongosh. To let the users know and encourage them to not use them, we throw an exception.
    • Iteration Lime

      For methods/functions/helpers that were deprecated in version 4.0 of the server, skip the implementation and throw an “This method was removed because it was deprecated in MongoDB 4.0” instead.

      Methods deprecated since 4.0:

      • Database.cloneDatabase
      • Database.cloneCollection
      • Database.copyDatabase
      • Cursor.maxScan

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            jessica.sigafoos@mongodb.com Jessica Sigafoos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: