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

    A class representation of the BSON Code type.

    层级 (查看层级一览)

    索引

    构造函数

    属性

    访问器

    方法

    构造函数

    • 参数

      • code: string | Function

        a string or function.

      • 可选scope: null | Document

        an optional scope for the function.

      返回 Code

    属性

    code: string
    scope: null | Document

    访问器

    • get _bsontype(): "Code"

      返回 "Code"

    方法

    • 返回 string

    • 返回 { code: string; scope?: Document }