$setOnInsert modifier for upsert

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • 2.4.0-rc1
    • Affects Version/s: 1.1.1
    • Component/s: Write Ops
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • 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.

              Assignee:
              Alberto Lerner (Inactive)
              Reporter:
              gf
              Votes:
              65 Vote for this issue
              Watchers:
              49 Start watching this issue

                Created:
                Updated:
                Resolved: