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

Fix bulkWrite API's option resolutions and handling of ignoreUndefined

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: native
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              daniel.aprahamian Daniel Aprahamian (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: