Class Code

A class representation of the BSON Code type.

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • code: string | Function

      a string or function.

    • Optional scope: null | Document

      an optional scope for the function.

    Returns Code

Properties

code: string
scope: null | Document

Accessors

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

Methods

  • Returns string

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

Generated using TypeDoc