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]