MongoDB\Driver\CursorInterface::setTypeMap
PHP function
Edit on GitHub ✎
(mongodb >=1.6.0)
Sets a type map to use for BSON unserialization
Description
MongoDB\Driver\CursorInterface::setTypeMap(array $typemap): void
Sets the type map configuration to use when unserializing the BSON results into PHP values.
Parameters
Return Values
Void
Errors/Exceptions
See Also
MongoDB\Driver\Cursor::setTypeMap- mongodb.persistence