Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /

MongoDB\GridFS\Bucket::getChunksCollection()

Novedad en la versión 1.2.

MongoDB\GridFS\Bucket::getChunksCollection()

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

function getChunksCollection(): MongoDB\Collection

A MongoDB\Collection objeto 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"

Volver

getBucketName()

En esta página