Module

x/atlas_sdk3/mod.ts>Code

TypeSafe MongoDB Atlas Data API SDK for Deno & Deno Deploy
Latest
class Code
import { Code } from "https://dotland.deno.dev/x/atlas_sdk3@v0.3.1/mod.ts";

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
import Code
import { Code } from "https://dotland.deno.dev/x/atlas_sdk3@v0.3.1/mod.ts";