Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2088

Inconsistent field names in BulkWriteResult vs. updateWriteOpResult and deleteWriteOpResult

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: None

      I find myself constantly looking up the fields of the bulkExec and updateOne/updateMany results, because I can't seem to memorize which is "nModified" and which is "modifiedCount".

      Question is, why are these different to begin with?

      nMatched vs. matchedCount
      nModified vs. modifiedCount
      nUpserted vs. upsertedCount

      Related, deletedCount vs. nRemoved.

      Ca bulkExec's return fields be aliased to the ones used by the results of other operations?

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            dandv Dan Dascalescu
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: