Bulk operations should use a common BulkWriteError for errors

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Matt Broadstone
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: