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

ignoreUndefined not working for find*Replace find*Modify methods

      With upgrade to 3.* we have modified all our calls to updateOne to replace whole document (as updates now can't take whole document) with findOneAndReplace.

      But these methods don't honor the setting ignoreUndefined causing severe issues in production applications.

      Please fix this at the earliest and issue a release.

      Have gone through collection.js and actullay found this option check missing. There should be an elegant way to handle this rather than check with each method.

       

       

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            poorna Poorna Subhash
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: