Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hex/src/lib/data/deps.ts>mongo.Bson.serialize

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function mongo.Bson.serialize
import { mongo } from "https://deno.land/x/hex@0.6.5/src/lib/data/deps.ts";
const { serialize } = mongo.Bson;

Serialize a Javascript object.

Parameters

object: Document
  • the Javascript object to serialize.
optional
options: SerializeOptions = [UNSUPPORTED]

Returns

Uint8Array

Buffer object containing the serialized object.