yii\mongodb\Collection::listIndexes PHP Method

listIndexes() public method

Returns the list of defined indexes.
Since: 2.1
public listIndexes ( array $options = [] ) : array
$options array list of options in format: optionName => optionValue.
return array list of indexes info.
    public function listIndexes($options = [])
    {
        return $this->database->createCommand()->listIndexes($this->name, $options);
    }