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.0/mod.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.