Skip to main content
Module

x/denodb/deps.ts>Bson.deserialize

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Go to Latest
function Bson.deserialize
import { Bson } from "https://deno.land/x/denodb@v1.0.40/deps.ts";
const { deserialize } = Bson;

Deserialize data as BSON.

Parameters

buffer: Buffer | ArrayBufferView | ArrayBuffer
  • the buffer containing the serialized set of BSON documents.
optional
options: DeserializeOptions

Returns

returns the deserialized Javascript Object.