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

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

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

Deserialize data as BSON.

Parameters

buffer: Uint8Array | ArrayBuffer
  • the buffer containing the serialized set of BSON documents.
optional
options: DeserializeOptions = [UNSUPPORTED]

Returns

returns the deserialized Javascript Object.