Functions
fromObject
- fromObject(mix: any, Type?: any): any
-
Parameters
-
mix: any
-
Optional Type: any
Returns any
toObject
- toObject<T>(bson: any, Type?: new (...args: any) => T): T
-
Type parameters
Parameters
-
bson: any
-
Optional Type: new (...args: any) => T
Returns T
Traverse the object and convert any unsupported type to a mongodb capable type. It also use
class-jsonto serialize an object. For example,biginttoDecimal128in case '> MAX_SAFE_INTEGER'numberin case '< MAX_SAFE_INTEGER'stringany other case