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 |
|---|---|
Date() | (dateValue) => Date |
ObjectId() | (value) => ObjectId |