Class: DBRef

DBRef

new DBRef(collection, oid, db){DBRef}

A class representation of the BSON DBRef type.

Name Type Description
collection string

the collection name.

oid ObjectID

the reference ObjectID.

db string optional

optional db name, if omitted the reference is local to the current db.