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

[SERVER] Clarify meaning of "n" in Update command response

    • 3

      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.

            Assignee:
            jason.price@mongodb.com Jason Price
            Reporter:
            rushil.kumar@mongodb.com Rushil Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              34 weeks, 6 days ago