arg_name: option name: typeMap type: array description: | Default :php:`type map ` to apply to cursors. The type map determines how BSON documents are converted to PHP values which determines. The |php-library| uses the following type map by default: .. code-block:: php [ 'array' => 'MongoDB\Model\BSONArray', 'document' => 'MongoDB\Model\BSONDocument', 'root' => 'MongoDB\Model\BSONDocument', ] interface: phpmethod operation: MongoDB\\Client::__construct optional: true position: 1 ...