Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DBRef

A class representation of the BSON DBRef type.

Hierarchy

  • DBRef

Index

Constructors

constructor

  • Parameters

    • collection: string

      the collection name.

    • oid: ObjectId

      the reference ObjectId.

    • Optional db: string

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

    • Optional fields: Document

    Returns DBRef

Properties

_bsontype

_bsontype: "DBRef"

collection

collection: string

Optional db

db?: string

fields

fields: Document

oid

Methods

inspect

  • inspect(): string
  • Returns string

toJSON

  • Returns DBRefLike & Document

Generated using TypeDoc