Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Code

A class representation of the BSON Code type.BSON代码类型的类表示。

Hierarchy继承层级

  • Code

Index索引

Constructors构造函数

Properties属性

Methods方法

Constructors构造函数

  • Parameters参数

    • code: string | Function

      a string or function.字符串或函数。

    • Optional scope: Document

      an optional scope for the function.函数的可选范围。

    Returns 返回 Code

Properties属性

_bsontype: "Code"
code: string | Function
scope?: Document

Methods方法

  • inspect(): string
  • Returns 返回 string

  • toJSON(): { code: string | Function; scope?: Document }
  • Returns 返回 { code: string | Function; scope?: Document }

    • code: string | Function
    • Optional scope?: Document

Generated using TypeDoc