Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

An ecosystem delivering practices, philosophy and portability.
Go to Latest
function mongo.Bson.serialize
import { mongo } from "https://deno.land/x/hex@0.5.15/src/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.