Type-safe MongoDB driver for Node.js with improved developer experience using TypeScript.
- Fully type-safe operations for MongoDB collections
- Strongly typed
find,insert,update,aggregate, etc. - Inference for schemas and documents
- Minimal and dependency-free
npm install mongodb-typesafe-driverRequires mongodb v5 as a peer dependency:
npm install mongodbMongoDb not support type safe, see details:
To improve mongodb types to make queries type safe.
Not use code, only types.
Just use Collection type from this repository instead original Collection mongodb type.
See examples.ts for details.







