Phalcon\Db\Adapter\MongoDB\Collection::listIndexes PHP 메소드

listIndexes() 공개 메소드

Returns information for all indexes for the collection.
또한 보기: ListIndexes::__construct() for supported options
public listIndexes ( array $options = [] ) : Phalcon\Db\Adapter\MongoDB\Model\IndexInfoIterator
$options array
리턴 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);
    }