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

Promise and callback version of bulkWrite differ.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.8
    • Affects Version/s: 2.1.4
    • Component/s: None

      When a bulkWrite call encounters errors such as duplicate keys the callback version returns both the error details and the info about the successfully written records. But the returned promise only calls reject if an error is encountered so there is not way to access the information about the successful records.

      The promise should probably always be resolved unless something is actually actually wrong with the request itself.

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            carlos.lawton@altisource.com Carlos Lawton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: