Skip to main content
Module

x/denodb/deps.ts>Bson.DeserializeOptions

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Go to Latest
interface Bson.DeserializeOptions
import { type Bson } from "https://deno.land/x/denodb@v1.0.40/deps.ts";
const { DeserializeOptions } = Bson;

Properties

optional
evalFunctions: boolean

evaluate functions in the BSON document scoped to the object deserialized.

optional
cacheFunctions: boolean

cache evaluated functions for reuse.

optional
deprecated
cacheFunctionsCrc32: boolean

use a crc32 code for caching, otherwise use the string of the function.

optional
promoteLongs: boolean

when deserializing a Long will fit it into a Number if it's smaller than 53 bits

optional
promoteBuffers: boolean

when deserializing a Binary will return it as a node.js Buffer instance.

optional
promoteValues: boolean

when deserializing will promote BSON values to their Node.js closest equivalent types.

optional
fieldsAsRaw: Document

allow to specify if there what fields we wish to return as unserialized raw buffer.

optional
bsonRegExp: boolean

return BSON regular expressions as BSONRegExp instances.

optional
allowObjectSmallerThanBufferSize: boolean

allows the buffer to be larger than the parsed BSON object

optional
index: number

Offset into buffer to begin reading document from

optional
raw: boolean