You are viewing an offline version of MongoDB documentation. Some page features might be unavailable. To view the latest version of the page or use interactive features, visit the live page.
MongoDB\Model\IndexInfo::getVersion()
Definition
Return Values
The index version.
Examples
$info = new IndexInfo([ 'v' => 1, ]); var_dump($info->getVersion());
The output would then resemble:
int(1)
See Also
listIndexes command reference in the MongoDB manual