Constructors
constructor
Parameters
Properties
_bsontype
_bsontype: "Code"
code
code: string | Function
Optional scope
Methods
inspect
Returns string
toJSON
- toJSON(): { code: string | Function; scope?: Document }
Returns { code: string | Function; scope?: Document }
code: string | Function
Optional scope?: Document
A class representation of the BSON Code type.