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

$setOnInsert modifier for upsert

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • 1.1.1
    • 2.4.0-rc1
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: