API 参考
    正在准备搜索索引...

    A class representation of the BSON DBRef type.

    层级 (查看层级一览)

    索引

    构造函数

    属性

    访问器

    方法

    构造函数

    • 参数

      • collection: string

        the collection name.

      • oid: ObjectId

        the reference ObjectId.

      • 可选db: string

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

      • 可选fields: Document

      返回 DBRef

    属性

    collection: string
    db?: string
    fields: Document

    访问器

    • get _bsontype(): "DBRef"

      返回 "DBRef"

    方法

    • 返回 string

    • 返回 DBRefLike & Document