- Reference >
- Enumeration Classes >
- MongoDB\Model\CollectionInfo::getType()
MongoDB\Model\CollectionInfo::getType()
New in version 1.9.
On this page
Definition
-
MongoDB\Model\CollectionInfo::getType Return the collection type.
Return Values
The collection type. This corresponds to the type field returned in the
listCollections command reply.
Examples
The output would then resemble:
collection
See Also
MongoDB\Database::createCollection()- listCollections command reference in the MongoDB manual