DbRef.fromBuffer constructor

DbRef.fromBuffer(
  1. BsonBinary buffer
)

Implementation

DbRef.fromBuffer(BsonBinary buffer) {
  var data = extractData(buffer);
  collection = data.collection;
  bsonObjectId = data.bsonObjectId;
  bsonCollection = data.bsonCollection;
}