Webiny\Component\Mongo\Bridge\MongoInterface::delete PHP Метод

delete() публичный Метод

Deletes all documents matching the filter.
См. также: http://docs.mongodb.org/manual/reference/command/delete/
public delete ( string $collectionName, array | object $filter, array $options = [] ) : MongoDB\DeleteResult
$collectionName string
$filter array | object Query by which to delete documents
$options array Command options
Результат MongoDB\DeleteResult
    public function delete($collectionName, $filter, array $options = []);

Usage Example

Пример #1
0
 public function delete($collectionName, $filter, array $options = [])
 {
     return $this->bridge->delete($this->cName($collectionName), $filter, $options);
 }