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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: