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

BulkWriteError should always have a writeErrors field

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            matt.broadstone Matt Broadstone
            Reporter:
            matt.broadstone Matt Broadstone
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: