[DOCS-2637] $setOnInsert says it only works with update() Created: 31/Jan/14  Updated: 10/Feb/14  Resolved: 10/Feb/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.1

Type: Bug Priority: Minor - P4
Reporter: Glenn Maynard Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 1 week, 2 days ago

 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.



 Comments   
Comment by Githook User [ 10/Feb/14 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-2637 setOnInsert for findAndModify
Branch: v2.4
https://github.com/mongodb/docs/commit/9c0dfafa8245d7d84ec996ca9eca310717fd6044

Comment by Githook User [ 10/Feb/14 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-2637 setOnInsert for findAndModify
Branch: master
https://github.com/mongodb/docs/commit/e832c3ee808846157c54cd97c67512e74fa0923e

Generated at Thu Feb 08 07:43:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.