-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 0.0.2
-
Component/s: None
-
None
The function bson.convertValueToElem does not copy the Value.d property, which means that documents and arrays are not properly converted. When marshaling is attempted, an error of Too Small is returned.
To fix this, copy the Value.d property to the newly created value.