Skip to main content
Module

x/hex/src/lib/data/deps.ts>mongo.Bson.Code

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
class mongo.Bson.Code
Re-export
import { mongo } from "https://deno.land/x/hex@0.6.5/src/lib/data/deps.ts";
const { Code } = mongo.Bson;

A class representation of the BSON Code type.

Constructors

new
Code(code: string | Function, scope?: Document)

Properties

_bsontype: string
code: string | Function
optional
scope: Document

Methods

deprecated
toExtendedJSON(): CodeExtended
toJSON(): { code: string | Function; scope?: Document; }

Static Methods

deprecated
fromExtendedJSON(doc: CodeExtended): Code