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

Remove keyVault single-Document wrapping methods

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.0
    • Affects Version/s: None
    • Component/s: Shell API
    • Labels:
      None
    • Needed
    • Hide

      Now, KeyVault.getKey() and KeyVault.getKeyByAltName() return a single document, instead of a cursor. This means, that doing:

      keyVault.getKey(...).next()
      

      Won't work anymore. This behaviour is the one that is exposed by the Node.js driver so it is consistent across mongosh and Node.js applications.

      Show
      Now, KeyVault.getKey() and KeyVault.getKeyByAltName() return a single document, instead of a cursor. This means, that doing: keyVault.getKey(...).next() Won't work anymore. This behaviour is the one that is exposed by the Node.js driver so it is consistent across mongosh and Node.js applications.
    • Iteration Iguanodon

      See MONGOSH-1266, we were planning to remove this compatibility mechanism in a major version of mongosh

            Assignee:
            kevin.mas@mongodb.com Kevin Mas Ruiz
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: