See also: MongoDB\Collection::listIndexes()
See also: http://docs.mongodb.org/manual/reference/command/listIndexes/
Inheritance: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
Exemplo n.º 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);
 }