-
Type: Bug
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Shell
-
Server Development Platform
-
ALL
-
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.
- is related to
-
SERVER-13092 shell bulk API replaceOne behaves like updateOne
- Closed
-
SERVER-17953 Implement Driver CRUD API Spec in shell
- Closed
-
SERVER-28383 Shell bulk.updateOne allows replacement
- Closed