Skip to main content
Module

x/mongo/mod.ts>Code

MongoDB driver for Deno
Extremely Popular
Go to Latest
class Code
extends BSONValue
import { Code } from "https://deno.land/x/mongo@v0.31.2/mod.ts";

A class representation of the BSON Code type.

Constructors

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

Properties

readonly
_bsontype: "Code"
code: string
scope: Document | null

Methods

inspect(): string
toJSON(): { code: string; scope?: Document; }