findAndModify() public method
Generates 'find and modify' command.
public array findAndModify ( $collectionName, $condition = [], $update = [], $options = [] ) | ||
---|---|---|
$collectionName | string |
Collection name |
$condition | array |
Filter condition |
$update | array |
Update criteria |
$options | array |
List of options in format: optionName => optionValue. |
return | array |
Command document. |
Please login to continue.