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

x/hex/src/data/deps.ts>mongo.Bson.Int32

An ecosystem delivering practices, philosophy and portability.
Go to Latest
class mongo.Bson.Int32
Re-export
import { mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { Int32 } = mongo.Bson;

A class representation of a BSON Int32 type.

Constructors

new
Int32(value: number | string)

Create an Int32 type

Properties

_bsontype: string
value: number

Methods

toExtendedJSON(options?: EJSONOptions): number | Int32Extended
toJSON(): number
toString(radix?: number): string
valueOf(): number

Access the number value.

Static Methods

fromExtendedJSON(doc: Int32Extended, options?: EJSONOptions): number | Int32