Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DBRef

A class representation of the BSON DBRef type.

Hierarchy层级

  • DBRef

Index索引

Constructors构造函数

Properties属性

Methods方法

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

Generated using TypeDoc