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

BulkWriteResult has NOT updatedCount property

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JavaScript
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      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

      Description

      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?

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: