findOneAndUpdate does not handle an empty update document properly

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: Write Operations
    • None
    • None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      The CRUD specification requires that an update contains at least one
      field, in order to check for application bugs. `updateOne` throws an exception when given an empty update document. `findOneAndUpdate` treats the empty update document as a no-op. The empty update document check for `findOneAndUpdate` must be updated in the same manner as the fix for JAVA-3328.

              Assignee:
              John Stewart (Inactive)
              Reporter:
              John Stewart (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: