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

Minimal Support for Versioned API in the shell

    • Type: Icon: Story Story
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.11.0
    • Affects Version/s: None
    • Component/s: None
    • Needed
    • Hide

      mongosh supports the same CLI arguments as the old shell now. See DOCS-13845 for the old shell ticket.

      The Mongo constructor also takes a third argument now, with non-field-level-encryption options. You can specify the API versions for a connection as laid out in the engineering description. This also matches the legacy shell’s behavior.

      Show
      mongosh supports the same CLI arguments as the old shell now. See DOCS-13845 for the old shell ticket. The Mongo constructor also takes a third argument now, with non-field-level-encryption options. You can specify the API versions for a connection as laid out in the engineering description. This also matches the legacy shell’s behavior.
    • Iteration Z

      How this was implemented in mongo: https://github.com/mongodb/mongo/commit/d3064df927c97abd402ee5768ab57667ed6849c9
      Node.js driver changes: https://github.com/mongodb/node-mongodb-native/commit/93f3ea5815bbd85b90745716f35849a59e8f8746
      New CLI arguments: DOCS-13845
      Mongo API changes: Mongo(str, null, {api: {version: '1', strict: true, deprecationErrors: true} }) (I guess because the second arg is used for FLE options)

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

              Created:
              Updated:
              Resolved: