MongoDB\BSON\Document::fromBSON Construct a new document instance from a BSON string &reftitle.description; final static public MongoDB\BSON\DocumentMongoDB\BSON\Document::fromBSON stringbson &reftitle.parameters; bson (string) A string containing a document in BSON format. &reftitle.returnvalues; Returns a new MongoDB\BSON\Document instance. &reftitle.errors; &mongodb.throws.argumentparsing; Throws MongoDB\Driver\Exception\UnexpectedValueException if bson is an invalid BSON string or contains more than a single document. &reftitle.seealso; MongoDB\BSON\Document::fromPHP MongoDB\BSON\Document::fromJSON BSON Types