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

$setOnInsert modifier for upsert

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.4.0-rc1
    • 1.1.1
    • Write Ops
    • None

    Description

      This will set the fields specified in $setOnInsert:

      {<fields>}

      if the update results in an insert. It does nothing if any existing documents are updated.

      Attachments

        Activity

          People

            Votes:
            65 Vote for this issue
            Watchers:
            49 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: