-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Update writes should check that the first key in the replacement document parameter does start with a $ symbol. That check is sufficient as the server will complain if the document contains a mix of atomic modifiers and non-modifier field replacements.
Usage example:
$collection->updateMany( ['x' => 1], ['$set' => ['x' => 2]], ['upsert' => true] );
- depends on
-
PHPLIB-27 Create write result classes
- Closed