- Reference >
- Enumeration Classes >
- MongoDB\Model\CollectionInfo::getOptions()
MongoDB\Model\CollectionInfo::getOptions()
On this page
Definition
-
MongoDB\Model\CollectionInfo::getOptions
Return the collection options. This correlates with the options for
MongoDB\Database::createCollection()
, but may include additional fields set by the server.
Return Values
The collection options.
Examples
The output would then resemble:
array(2) {
["capped"]=>
bool(true)
["size"]=>
int(1048576)
}
See Also
MongoDB\Database::createCollection()
- listCollections command reference in the MongoDB manual