Performs 'findAndModify' query and returns a single row of result.
public modify ( array $update, array $options = [], |
||
$update | array | update criteria |
$options | array | list of options in format: optionName => optionValue. |
$db | the Mongo connection used to execute the query. | |
Результат | array | null | the original document, or the modified document when $options['new'] is set. |