MongoDB\Driver\CursorInterface::setTypeMap

Sets a type map to use for BSON unserialization

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.

Parameters

typeMap (array)

Type map configuration.

Return Values

No value is returned.

Errors/Exceptions

  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.

See Also