-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.1.4
-
Component/s: None
-
Empty show more show less
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.