Description
DBCollection.prototype.replaceOne() validates the replacement document contains at least one non-$operator field. DBCollection.prototype.updateOne() and DBCollection.prototype.updateMany() validate the update object contains at least one $operator field.
However, none of replaceOne, updateOne, or updateMany in DBCollection.prototype.bulkWrite() do the same.
Attachments
Issue Links
- is related to
-
SERVER-13092 shell bulk API replaceOne behaves like updateOne
-
- Backlog
-
-
SERVER-17953 Implement Driver CRUD API Spec in shell
-
- Closed
-
-
SERVER-28383 Shell bulk.updateOne allows replacement
-
- Closed
-