This should merge two UpdateNodes and error if the trees cannot be merged. If the two nodes are UpdateObjectNodes, children with the same field name are merged. Issue ErrorCodes::ConflictingUpdateOperators if we ever try to merge two UpdateLeafNodes or two UpdateNodes of different types.
For now, we assume UpdateArrayNode does not exist.
- depends on
-
SERVER-28621 Parse BSON update expression into an UpdateNode tree
- Closed
- is depended on by
-
SERVER-28761 Implement UpdateObjectNode::apply()
- Closed
-
SERVER-28763 Create UpdateArrayNode
- Closed