또한 보기: MongoDB\Collection::listIndexes()
또한 보기: http://docs.mongodb.org/manual/reference/command/listIndexes/
상속: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
예제 #1
0
 /**
  * Returns information for all indexes for the collection.
  *
  * @see ListIndexes::__construct() for supported options
  * @return 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);
 }