Para agentes de IA: hay un índice de documentación disponible en https://www.mongodb.com/es/docs/llms.txt — versiones en markdown de todas las páginas están disponibles agregando .md a cualquier ruta URL.
Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
MongoDB Branding Shape
Click here >
Docs Menu

MongoDB\GridFS\Bucket::getChunksCollection()

Novedad 1.2 en la versión.:

MongoDB\GridFS\Bucket::getChunksCollection()

Devuelve la colección de fragmentos utilizada por el bucket.

function getChunksCollection(): MongoDB\Collection

Un objeto MongoDB\Collection para la colección de fragmentos.

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

La vista de salida se ilustraría como sigue:

string(14) "test.fs.chunks"