Throw a method removed error for things deprecated at 4.0

XMLWordPrintableJSON

    • Type: Story
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.3.1
    • Affects Version/s: None
    • Component/s: Embedded Shell, Shell API
    • None
    • 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.

      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
            Reporter:
            Jessica Sigafoos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: