import { Bson } from "https://deno.land/x/mongo@v0.31.0/mod.ts";
const { Code } = Bson;
A class representation of the BSON Code type.
Constructors
new
Code(code: string | Function, scope?: Document)Methods
deprecated
toExtendedJSON(): CodeExtended[Symbol.for("Deno.customInspect")](): string
Static Methods
deprecated
fromExtendedJSON(doc: CodeExtended): Code