Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Code

A class representation of the BSON Code type.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

  • new Code(code: string | Function, scope?: null | Document): Code
  • 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

  • inspect(): string
  • Returns string

  • toJSON(): { code: string; scope?: Document }
  • Returns { code: string; scope?: Document }

Generated using TypeDoc