mongodb-typesafe-driver
v1.0.1
Published
mongodb type script safe driver
Downloads
16
Maintainers
Readme
mongodb-typesafe-driver
Type-safe MongoDB driver for Node.js with improved developer experience using TypeScript.
✨ Features
- Fully type-safe operations for MongoDB collections
- Strongly typed
find,insert,update,aggregate, etc. - Inference for schemas and documents
- Minimal and dependency-free
📦 Installation
npm install mongodb-typesafe-driverRequires mongodb v5 as a peer dependency:
npm install mongodbWhy ?
MongoDb not support type safe, see details:
https://www.mongodb.com/docs/drivers/node/current/fundamentals/typescript/#type-safety-and-dot-notation
Goal
To improve mongodb types to make queries type safe.
Not use code, only types.

Support nested? Yes!

How it use?
Just use Collection type from this repository instead original Collection mongodb type.
See examples.ts for details.
