MongoDB\GridFS\Bucket::getTypeMap()
On this page
New in version 1.2.
Definition
Return Values
A type map array.
Example
$database = (new MongoDB\Client)->selectDatabase('test'); $bucket = $database->selectGridFSBucket([ 'typeMap' => [ 'root' => 'array', 'document' => 'array', 'array' => 'array', ], ]); var_dump($bucket->getTypeMap());
The output would then resemble:
array(3) { ["root"]=> string(5) "array" ["document"]=> string(5) "array" ["array"]=> string(5) "array" }