DbRef constructor

DbRef(
  1. String collection,
  2. ObjectId id
)

Implementation

DbRef(this.collection, ObjectId id)
    : bsonCollection = BsonString(collection),
      bsonObjectId = BsonObjectId(id);