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

$setOnInsert modifier for upsert

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 2.4.0-rc1
    • Component/s: Write Ops
    • Labels:
      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: