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
파일: Mongo.php 프로젝트: webiny/mongo
 public function delete($collectionName, $filter, array $options = [])
 {
     return $this->bridge->delete($this->cName($collectionName), $filter, $options);
 }