-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Write Operations
-
None
-
Minor Change
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.