-
Type: Improvement
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Native, Operations Layer
The bulkwrite API has a lot of problems with option resolution. Currently, the two issues we face are:
1. BulkWrites can take some options either at construction (collection.initializeOrderedBulkWrite();) or at execution (bulkOp.execute(). The resolution of these options (which ones are given higher priority) are not consistent with our API overall, and are not clear to users.
2. Certain options like ignoreUndefined can be specified in execute, but are needed for calculations beforehand. See NODE-1898.
We should consider, at the next breaking version, refactoring the BulkWrite API to be more consistent.
- related to
-
NODE-1898 BulkWrite: Incorrect batch-size calculations when array contains object with undefined value
- Closed