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

$setOnInsert says it only works with update()

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • v1.3.1
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved:
              10 years, 11 weeks, 4 days ago