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

BulkWriteResult has NOT updatedCount property

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • 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

    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

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

            Dates

              Created:
              Updated:
              Resolved: