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

Bulk operations should use a common BulkWriteError for errors

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Bulk operation failures used to be presented to users in a non idiomatic fashion, calling the async callback with (Error, BulkWriteResult), assuming the user remembered to check the second value. Instead we should create a new BulkWriteError type which wraps the result, and only callback with a single value in the error case.

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

              Created:
              Updated:
              Resolved: