Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21273

Implement Driver CRUD API Spec for .explain()

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 3.2.0-rc1
    • Fix Version/s: Backlog
    • Component/s: Shell
    • Labels:
      None

      Description

      With the Driver CRUD API spec implemented, we can now use the following command from the shell:

      > db.test.updateMany( { "name" : "jason" }, { $set : { "name" : "json" } } )
      

      However, we must use the old method for explaining the update:

      > db.test.explain().update( { "name" : "jason" }, { $set : { "name" : "json" } }, { "multi" : true } )
      

      .explain() should implement the Driver CRUD API for consistency

        Issue Links

          Activity

          • Comments
          Hide
          acm Andrew Morrow added a comment -

          Jonathan Reams - Could you please give this a quick triage w.r.t. whether should be in 3.1 required or 3.3 required.

          Show
          acm Andrew Morrow added a comment - Jonathan Reams - Could you please give this a quick triage w.r.t. whether should be in 3.1 required or 3.3 required.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: