OptionalallowOptionalbsonreturn BSON regular expressions as BSONRegExp instances.
Optionalfieldsallow to specify if there what fields we wish to return as unserialized raw buffer.
OptionalindexOffset into buffer to begin reading document from
Optionalpromotewhen deserializing a Binary will return it as a node.js Buffer instance.
Optionalpromotewhen deserializing a Long will fit it into a Number if it's smaller than 53 bits.
Optionalpromotewhen deserializing will promote BSON values to their Node.js closest equivalent types.
OptionalrawOptionalusewhen deserializing a Long return as a BigInt.
OptionalvalidationAllows for opt-out utf-8 validation for all keys or specified keys. Must be all true or all false.
allows the buffer to be larger than the parsed BSON object.