Navigation

MongoDB\Model\IndexInfo::isSparse()

Definition

MongoDB\Model\IndexInfo::isSparse

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

function isSparse(): boolean

Return Values

A boolean indicating whether the index is a sparse index.

See Also