Class DBRef

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

Hierarchy

Constructors

Properties

Accessors

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

collection: string
db?: string
fields: Document

Accessors

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

Methods

  • Returns string

Generated using TypeDoc