Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function Bson.deserialize
import { Bson } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";
const { deserialize } = 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.