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

Remove duplicate BulkWriteResult accessors

    • 2
    • Needed
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?

      The getters listed above are all removed now. The migration is:

      • BulkWriteResult.nInserted -> BulkWriteResult.insertedCount
      • BulkWriteResult.nUpserted -> BulkWriteResult.upsertedCount
      • BulkWriteResult.nMatched -> BulkWriteResult.matchedCount
      • BulkWriteResult.nModified -> BulkWriteResult.modifiedCount
      • BulkWriteResult.nRemoved -> BulkWriteResult.deletedCount
      • BulkWriteResult.getUpsertedIds -> BulkWriteResult.upsertedIds / BulkWriteResult.getUpsertedIdAt(index: number)
      • BulkWriteResult.getInsertedIds -> BulkWriteResult.insertedIds

      2. Would you like the user to see examples of the syntax and/or executable code and its output?

      We already removed the usages, in the previous linked DOCSP. But we can double check here.

      3. Which versions of the driver/connector does this apply to?

      >= 6.0.0

      Show
      1. What would you like to communicate to the user about this feature? The getters listed above are all removed now. The migration is: BulkWriteResult.nInserted -> BulkWriteResult.insertedCount BulkWriteResult.nUpserted -> BulkWriteResult.upsertedCount BulkWriteResult.nMatched -> BulkWriteResult.matchedCount BulkWriteResult.nModified -> BulkWriteResult.modifiedCount BulkWriteResult.nRemoved -> BulkWriteResult.deletedCount BulkWriteResult.getUpsertedIds -> BulkWriteResult.upsertedIds / BulkWriteResult.getUpsertedIdAt(index: number) BulkWriteResult.getInsertedIds -> BulkWriteResult.insertedIds 2. Would you like the user to see examples of the syntax and/or executable code and its output? We already removed the usages, in the previous linked DOCSP. But we can double check here. 3. Which versions of the driver/connector does this apply to? >= 6.0.0

      This ticket is a follow up for NODE-4791 to remove BulkWriteResult getters that were deprecated in NODE V5/V6

      AC

      • Remove BulkWriteResult#nInserted
      • Remove BulkWriteResult#nUpserted
      • Remove BulkWriteResult#nMatched
      • Remove BulkWriteResult#nModified
      • Remove BulkWriteResult#nRemoved
      • Remove BulkWriteResult#getInsertedIds
      • Remove BulkWriteResult#getUpsertedIds
      • Add defaultValue documentation to BulkOptions

        There are no Sub-Tasks for this issue.

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            warren.james@mongodb.com Warren James
            Warren James
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: