DeserializeOptions | mongodb (original) (raw)
Index
Properties
Optional
allowObjectSmallerThanBufferSize
allowObjectSmallerThanBufferSize?: boolean
allows the buffer to be larger than the parsed BSON object.
Optional
bsonRegExp
bsonRegExp?: boolean
return BSON regular expressions as BSONRegExp instances.
Optional
fieldsAsRaw
allow to specify if there what fields we wish to return as unserialized raw buffer.
Optional
index
index?: number
Offset into buffer to begin reading document from
Optional
promoteBuffers
promoteBuffers?: boolean
when deserializing a Binary will return it as a node.js Buffer instance.
Optional
promoteLongs
promoteLongs?: boolean
when deserializing a Long will fit it into a Number if it's smaller than 53 bits.
Optional
promoteValues
promoteValues?: boolean
when deserializing will promote BSON values to their Node.js closest equivalent types.
Optional
raw
raw?: boolean
Optional
useBigInt64
useBigInt64?: boolean
when deserializing a Long return as a BigInt.
Optional
validation
validation?: {
utf8: boolean | Record<string, true> | Record<string, false>;
}
Allows for opt-out utf-8 validation for all keys or specified keys. Must be all true or all false.