对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

MongoDB\GridFS\Bucket::getChunksCollection()

1.2版本新增。:

MongoDB\GridFS\Bucket::getChunksCollection()

返回存储桶使用的数据块collection。

function getChunksCollection(): MongoDB\Collection

数据块collection的MongoDB\Collection对象。

<?php
$bucket = (new MongoDB\Client)->test->selectGridFSBucket();
var_dump((string) $bucket->getChunksCollection());

而输出将类似如下所示:

string(14) "test.fs.chunks"