Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35107

BulkWriteResult has NOT updatedCount property

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: JavaScript
    • None
    • ALL
      1. create a collection with sample docs inserted
      2. use bulkWrite(ops) to execute a list of UpdatOne commands
      3. check the returned result object

      with a list of UpdatOne commands executed by bulkWrite(ops), the BulkWriteResult object returned has only property like matchedCount, upsertedCount, etc, with NO updatedCount or modifiedCount. How do I know the number of docs actually updated?

            Assignee:
            nick.brewer Nick Brewer
            Reporter:
            rambo_yuanbo@outlook.com bo yuan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: