A class representation of the BSON DBRef type.

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • collection: string

      the collection name.

    • oid: mongoose.mongo.BSON.ObjectId

      the reference ObjectId.

    • Optional db: string

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

      Optional
    • Optional fields: mongoose.mongo.BSON.Document
      Optional

    Returns DBRef

Properties

collection: string
db?: string

Accessors

  • get _bsontype(): "DBRef"
  • Returns "DBRef"

Methods

  • Returns string

Generated using TypeDoc