Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/model/dependencies/mongo.ts>Bson

model based mongo for deno
Latest
namespace Bson
Re-export
import { Bson } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";

Classes

A class representation of the BSON RegExp type.

A class representation of the BSON Symbol type.

A class representation of the BSON Code type.

A class representation of the BSON DBRef type.

A class representation of the BSON Decimal128 type.

A class representation of the BSON Double type.

A class representation of a BSON Int32 type.

A class representing a 64-bit integer

A class representation of the BSON MaxKey type.

A class representation of the BSON MinKey type.

A class representation of the BSON ObjectId type.

A class representation of the BSON UUID type.

Variables

Binary Default Type @internal

Any integer up to 2^53 can be precisely represented by a double.

Any integer down to -2^53 can be precisely represented by a double.

Functions

Calculate the bson size for a passed in Javascript object.

Deserialize data as BSON.

Deserialize stream data as BSON documents.

Serialize a Javascript object.

Serialize a Javascript object using a predefined Buffer and index into the buffer, useful when pre-allocating the space for serialization.

Sets the size of the internal serialization buffer.