ignoreUndefined not working for find*Replace find*Modify methods

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Poorna Subhash
              None
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: