Skip to main content
Module

x/mongo/mod.ts>Bson.Binary

MongoDB driver for Deno
Extremely Popular
Go to Latest
class Bson.Binary
Re-export
import { Bson } from "https://deno.land/x/mongo@v0.31.0/mod.ts";
const { Binary } = Bson;

Constructors

new
Binary(buffer: Uint8Array, subType?: number)

Properties

_bsontype: string
buffer: Uint8Array
subType: number

Methods

length(): number
toExtendedJSON(options?: EJSONOptions): BinaryExtended
toJSON(): string
toString(): string

Static Methods

fromExtendedJSON(doc: BinaryExtended | UUIDExtended, options?: EJSONOptions): Binary