For AI agents: a documentation index is available at https://www.mongodb.com/ja-jp/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
MongoDB\Collection::getCollectionName()
Definition
MongoDB\Collection::getCollectionName()
Returns the name of this collection.
functiongetCollectionName(): string
Return Values
The name of this collection as a string.
Example
The following returns the collection name for the zips collection in the test database.