Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Code

A class representation of the BSON Code type.

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