import { mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { calculateObjectSize } = mongo.Bson;
Calculate the bson size for a passed in Javascript object.
Parameters
object: Document
- the Javascript object to calculate the BSON byte size for
optional
options: CalculateObjectSizeOptions = [UNSUPPORTED]