This used to work with the old serializeToBson:
Bson q = Bson(["UID" : Bson("STR-UID"), "Version" : Bson(1)]);
auto bf = cast(ubyte[])std.file.read("bin.obj");
Bson bt = serializeToBson(bf);
q["DATA"] = bt;
With the new serializeToBson it fails:
Internal error information:
core.exception.AssertError@....\Users\cducree\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\data\bson.d(1323): Overwriting root item.
How to serialize ubyte arrays to Bson?