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

$setOnInsert modifier for upsert

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.0-rc1
    • Affects Version/s: 1.1.1
    • Component/s: Write Ops
    • None

      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.

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

              Created:
              Updated:
              Resolved: