Remove keyVault single-Document wrapping methods

XMLWordPrintableJSON

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

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

              Assignee:
              Kevin Mas Ruiz
              Reporter:
              Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: