I'm using mongoclient 1.0.0 linux portable x64 with mongodb 3.2.3. I've many documents with DBRef
s, which reference to a different document. The oid
in the DBRef
get's displayed like this:
{
"_id": "5358e37f3d78591c418b4567",
"createdBy": {
"_bsontype": "DBRef",
"namespace": "user",
"oid": {
"_bsontype": "ObjectID",
"id": "O}�\u0000èOÓKZ\u0000\u0000\u0000"
},
"db": "test"
},
}
{
"_id": "5358e37f3d78591c418b4567",
"createdBy": {
"_bsontype": "DBRef",
"namespace": "user",
"oid": "5358d7193d78591e308b4567",
"db": "test"
},
}
This only happen with a single DBRef, not with an array of DBRefs.