Class DBRef

A class representation of the BSON DBRef type.

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • collection: string

      the collection name.

    • oid: ObjectId

      the reference ObjectId.

    • Optionaldb: string

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

    • Optionalfields: Document

    Returns DBRef

Properties

collection: string
db?: string
fields: Document

Accessors

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

Methods

  • Prints a human-readable string of BSON value information If invoked manually without node.js.inspect function, this will default to a modified JSON.stringify

    Parameters

    • Optionaldepth: number
    • Optionaloptions: unknown
    • Optionalinspect: InspectFn

    Returns string