-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Component/s: CRUD
-
None
The update parameter for UpdateOne and UpdateMany operations is invalid if it does not contain atomic operators. Likewise, the replacement parameter for ReplaceOne operations is invalid if it does contain atomic operators. This is discussed in the spec under Update vs. Replace Validation, but there is presently no tests for this logic.
Drivers should sync to CRUD spec tests added in https://github.com/mongodb/specifications/commit/9dc5e9856fde61deafd8ede341d2a4e9bb867353.
- depends on
-
PHPLIB-560 Add tests for update/replacement validation in single and bulk write operations
- Closed
-
CSHARP-3143 Add tests for update/replacement validation in single and bulk write operations
- Backlog
-
GODRIVER-1665 Add tests for update/replacement validation in single and bulk write operations
- Backlog
-
CDRIVER-3726 Add tests for update/replacement validation in single and bulk write operations
- Closed
-
CXX-2057 Add tests for update/replacement validation in single and bulk write operations
- Closed
-
JAVA-3772 Add tests for update/replacement validation in single and bulk write operations
- Closed
-
MOTOR-568 Add tests for update/replacement validation in single and bulk write operations
- Closed
-
PYTHON-2301 Add tests for update/replacement validation in single and bulk write operations
- Closed
-
RUBY-2292 Add tests for update/replacement validation in single and bulk write operations
- Closed
-
RUST-477 Add tests for update/replacement validation in single and bulk write operations
- Closed
- related to
-
NODE-2660 Throw an error if bulk update documents don't contain update operator expressions
- Closed