Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2637

$setOnInsert says it only works with update()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Done
    • None
    • v1.3.1
    • manual
    • None
    • 4

    Description

      http://docs.mongodb.org/manual/reference/operator/update/setOnInsert/ says "only when using the upsert option to the update() operation performs an insert" with bold on "only". It also works with findAndModify update clauses in upsert mode.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            glenn Glenn Maynard
            Jess Mokrzecki Jess Mokrzecki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 34 weeks, 3 days ago