A class representation of the BSON Code type.

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • code: string | Function

      a string or function.

    • Optional scope: mongoose.mongo.BSON.Document

      an optional scope for the function.

      Optional

    Returns Code

Properties

code: string

Accessors

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

Methods

  • Returns string

Generated using TypeDoc