MongoDB\GridFS\Bucket::getFilesCollection()
On this page
New in version 1.2.
Definition
Return Values
A MongoDB\Collection
object for the files collection.
Examples
$bucket = (new MongoDB\Client)->test->selectGridFSBucket(); $filesCollection = $bucket->getFilesCollection(); var_dump($filesCollection->getCollectionName());
The output would then resemble:
string(8) "fs.files"