Use ODM
CosmoMyzrailGorynych opened this issue · comments
Cosmo Myzrail Gorynych aka CoMiGo commented
Like Mongoose for MongoDB, ODM is a middle layer between a programmer and a database client module that adds tons of sugar and allows to model entities and build typings and business-logic tests.
Benefits:
- typings!
- more error-proof;
- faster code writing for document management;
- virtual fields and unrolled foreign keys (if the ODM module supports it).