- Reference >
- Enumeration Classes >
- MongoDB\Model\CollectionInfo::getName()
MongoDB\Model\CollectionInfo::getName()
On this page
Definition
-
MongoDB\Model\CollectionInfo::getName
Return the collection name.
Return Values
The collection name. This corresponds to the name
field returned in the
listCollections
command reply.
Examples
The output would then resemble:
See Also
MongoDB\Collection::getCollectionName()
- listCollections command reference in the MongoDB manual