MongoDB\BSON\Document::getIterator
Returns an iterator for the BSON document
Description
final public MongoDB\BSON\Iterator MongoDB\BSON\Document::getIterator()
Parameters
This function has no parameters.
Return Values
Returns a MongoDB\BSON\Iterator instance that can be
used to iterate over all keys in the document.
Errors/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
- Throws MongoDB\Driver\Exception\UnexpectedValueException if the BSON iterator could not be initialized.