Constructors
constructor
- new Code(code, scope?): Code
-
Properties
_bsontype
_bsontype: "Code"
code
code: string | Function
Optional
scope
Methods
inspect
- inspect(): string
-
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.