Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of PHP Library Manual, refer to the upgrade documentation.

MongoDB\Model\IndexInfo::isUnique()

Definition

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

Return Values

A boolean indicating whether the index is a unique index.

See Also