MongoDB\BSON\Document::serialize

Serialize a Document

Description

final public string MongoDB\BSON\Document::serialize()

Parameters

This function has no parameters.

Return Values

Returns the serialized representation of the MongoDB\BSON\Document.

Errors/Exceptions

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

See Also