update() public method
Update existing documents in the collection.
public \MongoDB\Driver\WriteResult update ( $collectionName, $condition, $document, $options = [] ) | ||
---|---|---|
$collectionName | string |
Collection name |
$condition | array |
Filter condition |
$document | array |
Data to be updated. |
$options | array |
Update options. |
return | \MongoDB\Driver\WriteResult |
Write result. |
Please login to continue.