Docs Menu

MongoDB\GridFS\Bucket::getChunksCollection()

이 페이지의 내용

버전 1.2에 새로 추가됨.

MongoDB\GridFS\Bucket::getChunksCollection()

Returns the chunks collection used by the bucket.

function getChunksCollection(): MongoDB\Collection

a MongoDB\Collection object for the chunks collection.

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

이 경우 출력은 다음과 유사합니다:

string(14) "test.fs.chunks"

이 페이지의 내용