对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

MongoDB\Model\IndexInfo::isUnique()

MongoDB\Model\IndexInfo::isUnique()

Return whether the index is a unique index. This correlates with the unique option for MongoDB\Collection::createIndex().

function isUnique(): boolean

指示索引是否为唯一索引的布尔值。

<?php
$info = new IndexInfo([
'unique' => true,
]);
var_dump($info->isUnique());

而输出将类似如下所示:

bool(true)
给本页内容打分