Class Code

A class representation of the BSON Code type.

Hierarchy

  • Code

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

  • Returns string

  • Returns {
        code: string | Function;
        scope?: Document;
    }

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

Generated using TypeDoc