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

Implement Driver CRUD API Spec for .explain()

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 3.2.0-rc1
    • Shell
    • Server Tooling & Methods

    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

        Activity

          People

            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            jason.zucchetto Jason Zucchetto
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: