[DOCS-16428] [SERVER] Clarify meaning of "n" in Update command response Created: 09/Oct/23  Updated: 13/Nov/23  Resolved: 17/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.4.0, 5.0.0, 6.0.0, 7.1.0, 7.0.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Minor - P4
Reporter: Rushil Kumar Assignee: Jason Price
Resolution: Done Votes: 0
Labels: bugfix, quick-win
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 16 weeks, 5 days ago
Story Points: 3

 Description   

https://www.mongodb.com/docs/manual/reference/command/update/#mongodb-data-update.n

Relevant slack thread: https://mongodb.slack.com/archives/C0UDE2DL6/p1696882572455669

The value of `n` seems to imply here that it indicates the number of documents matched. However, in the case of an upsert, `n` indicates the number of documents inserted.

We should clarify this in our docs.



 Comments   
Comment by Jason Price [ 13/Oct/23 ]

https://github.com/10gen/docs-mongodb-internal/pull/5074

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