MongoDB\Driver\CursorInterface::setTypeMap

Sets a type map to use for BSON unserialization

&reftitle.description; abstract public `void` `MongoDB\Driver\CursorInterface::setTypeMap` `array` `typemap`

Sets the type map configuration to use when unserializing the BSON results into PHP values.

&reftitle.parameters;
&mongodb.parameter.typeMap;
&reftitle.returnvalues;

&return.void;

&reftitle.errors;

&mongodb.throws.argumentparsing;

&reftitle.seealso;

- `MongoDB\Driver\Cursor::setTypeMap`
- mongodb.persistence