Learn the "why" behind slow queries and how to fix them in our 2-Part Webinar.
Register now >
Docs Menu
Docs Home
/ /

MongoDB\Model\IndexInfo::getVersion()

MongoDB\Model\IndexInfo::getVersion()

インデックスのバージョンを返します。

function getVersion(): integer

インデックスのバージョン。

<?php
$info = new IndexInfo([
'v' => 1,
]);
var_dump($info->getVersion());

出力は次のようになります。

int(1)
  • MongoDB\Collection::createIndex()

  • MongoDB マニュアルのlistIndexesコマンド参照

戻る

getNamespace()

項目一覧