Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DBRef

A class representation of the BSON DBRef type.BSON DBRef类型的类表示。

Hierarchy继承层级

  • DBRef

Index索引

Constructors构造函数

Properties属性

Methods方法

Constructors构造函数

  • Parameters参数

    • collection: string

      the collection name.集合名称。

    • oid: ObjectId

      the reference ObjectId.引用ObjectId。

    • Optional db: string

      optional db name, if omitted the reference is local to the current db.可选数据库名称,如果省略,则引用是当前数据库的本地引用。

    • Optional fields: Document

    Returns 返回 DBRef

Properties属性

_bsontype: "DBRef"
collection: string
db?: string
fields: Document

Methods方法

  • inspect(): string
  • Returns 返回 string

  • Returns 返回 DBRefLike & Document

Generated using TypeDoc