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

Add more intuitive object argument to shell's update method

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • 2.1.0
    • None
    • Shell
    • None

    Description

      Currently, db.coll.update(...) utilizes two boolean values to represent upsert and multiupdate. It would be more intuitive and memorable (as well as backwards compatible) if one could pass an object mapping "multi" and "upsert", instead.

      Attachments

        Activity

          People

            brandon Brandon Diamond
            brandon Brandon Diamond
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: