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

Missing methods on JS builtins from the old shell: what should we support?

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.2
    • Component/s: None
    • Labels:
      None
    • Story Points:
      5
    • Documentation Changes:
      Needed
    • Documentation Changes Summary:
      The Mongo object supports an additional .getCollection() method that is undocumented in the legacy shell. `mongo.getCollection()` accepts a full namespace, i.e. {{<db>.<collection>}}.
    • Sprint:
      Iteration Z, Iteration Chicago

      Description

      The old shell added a number of functions to JS builtins that we're currently missing, and that we might want for script compatibility at least:

      https://github.com/mongodb/mongo/blob/eb2b72cf9c0269f086223d499ac9be8a270d268c/src/mongo/shell/types.js

      plus Object.bsonsize (an alias for the global bsonsize, and from the looks of it, the only documented utility).

      These are a lot of functions, and we may not want all of them.

      Differences doc: https://docs.google.com/document/u/1/d/1ssisfyD1BskYfc2XR-rGvypnvhT9llw_Z47zp420dME/edit

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              anna.henningsen Anna Henningsen
              Reporter:
              anna.henningsen Anna Henningsen
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: