import { type mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { DeserializeOptions } = mongo.Bson;
Properties
evaluate functions in the BSON document scoped to the object deserialized.
when deserializing a Long will fit it into a Number if it's smaller than 53 bits
when deserializing a Binary will return it as a node.js Buffer instance.
when deserializing will promote BSON values to their Node.js closest equivalent types.
optional
fieldsAsRaw: Documentallow to specify if there what fields we wish to return as unserialized raw buffer.
allows the buffer to be larger than the parsed BSON object