[DOCS-14228] Clarify the semantics of `updatedExisting` in the findAndModify command Created: 15/Feb/21  Updated: 30/Oct/23  Resolved: 28/Oct/21

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Minor - P4
Reporter: Kaloian Manassiev Assignee: Ian Fogelman
Resolution: Fixed Votes: 0
Labels: docs-server-onboarding, quick-win
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 2 years, 15 weeks ago
Epic Link: DOCSP-11701
Story Points: 2

 Description   

Description

The documentation for the updatedExisting field of the findAndModify response, doesn't clearly indicate that updatedExisting will be set to true even if the query predicate matched, but the update operation resulted in no actual write (no-op write).

We should update the documents to say:
updatedExisting: Contains true if an update operation modified an existing document or found the document already in the desired end state (and didn't actually perform a write).

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 27/Oct/21 ]

Author:

{'name': 'ian fogelman', 'email': 'ian.fogelman@mongodb.com', 'username': 'ianf-mongodb'}

Message: DOCS-14228 Clarified updateExisting functionality
Branch: v4.0
https://github.com/mongodb/docs/commit/6f9e684852e19c507ef98371bfb0218a87e41898

Comment by Githook User [ 27/Oct/21 ]

Author:

{'name': 'ian fogelman', 'email': 'ian.fogelman@mongodb.com', 'username': 'ianf-mongodb'}

Message: DOCS-14228 Clarified updateExisting functionality
Branch: v4.2
https://github.com/mongodb/docs/commit/10f9a13da0593b71aee1e84e7679361570918a92

Comment by Githook User [ 27/Oct/21 ]

Author:

{'name': 'ian fogelman', 'email': 'ian.fogelman@mongodb.com', 'username': 'ianf-mongodb'}

Message: DOCS-14228 Clarified updateExisting functionality
Branch: v4.4
https://github.com/mongodb/docs/commit/6177276e66e18aec75d44c4c74e01d795076724f

Comment by Githook User [ 27/Oct/21 ]

Author:

{'name': 'ian fogelman', 'email': 'ian.fogelman@mongodb.com', 'username': 'ianf-mongodb'}

Message: DOCS-14228 Clarified updateExisting functionality
Branch: v5.0
https://github.com/mongodb/docs/commit/10556e3674706fba8ef3c7c6c227981df3a67503

Comment by Githook User [ 27/Oct/21 ]

Author:

{'name': 'ian fogelman', 'email': 'ian.fogelman@mongodb.com', 'username': 'ianf-mongodb'}

Message: DOCS-14228 Clarified updateExisting functionality
Branch: master
https://github.com/mongodb/docs/commit/5540c5b427c6b84cdb45893f61dc8d83ecc8f54b

Generated at Thu Feb 08 08:09:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.