Webiny\Component\Mongo\Bridge\MongoInterface::dropIndex PHP Method

dropIndex() public method

Drop a single index in the collection.
public dropIndex ( string $collectionName, string $indexName, array $options = [] ) : array | object
$collectionName string
$indexName string Index name
$options array Additional options
return array | object Command result document
    public function dropIndex($collectionName, $indexName, array $options = []);

Usage Example

Example #1
0
 public function dropIndex($collectionName, $indexName, array $options = [])
 {
     return $this->bridge->dropIndex($this->cName($collectionName), $indexName, $options);
 }