Skip to main content
Module

x/mongo/mod.ts>Bson.deserialize

MongoDB driver for Deno
Extremely Popular
Go to Latest
function Bson.deserialize
import { Bson } from "https://deno.land/x/mongo@v0.31.2/mod.ts";
const { deserialize } = Bson;

Deserialize data as BSON.

Parameters

buffer: Uint8Array
  • the buffer containing the serialized set of BSON documents.
optional
options: DeserializeOptions

Returns

returns the deserialized Javascript Object.