Phalcon\Db\Adapter\MongoDB\Collection::listIndexes PHP Method

listIndexes() public method

Returns information for all indexes for the collection.
See also: ListIndexes::__construct() for supported options
public listIndexes ( array $options = [] ) : Phalcon\Db\Adapter\MongoDB\Model\IndexInfoIterator
$options array
return Phalcon\Db\Adapter\MongoDB\Model\IndexInfoIterator
    public function listIndexes(array $options = [])
    {
        $operation = new ListIndexes($this->databaseName, $this->collectionName, $options);
        $server = $this->manager->selectServer(new ReadPreference(ReadPreference::RP_PRIMARY));
        return $operation->execute($server);
    }