MongoDB Driver API for Node.js (original) (raw)

Class: DBRef

DBRef

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

node_modules/bson/lib/bson/db_ref.js, line 10

A class representation of the BSON DBRef type.

Name Type Description
namespace 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.