Type Casters Utility
TypeCasters provides utility functions for converting strings or other types into MongoDB-compatible types (like ObjectId).
API Reference
constTypeCasters:object
Type casting functions for MongoDB types
Type declaration
| Name | Type | Default value |
|---|---|---|
Date() | (dateValue) => Date | - |
ObjectId | ObjectIdConstructor | mongoose.Types.ObjectId |