BulkWriteError should always have a writeErrors field

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.8
    • Affects Version/s: 3.5.7
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Originally reported in this pull request:

      TLDR; currently, if you run insertMany() with ordered: false and there are multiple errors, the error will have a top-level writeErrors property. But there will not be a writeErrors property if there is exactly one error.

              Assignee:
              Matt Broadstone
              Reporter:
              Matt Broadstone
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: