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

Implement Driver CRUD API Spec for .explain()

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.0-rc1
    • Component/s: Shell
    • Server Tooling & Methods

      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

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

              Created:
              Updated:
              Resolved: