mongodbjs vs mongoosejs
mongodbjs
- the native mongodb driver
- performance better than mongoose
- no schema fixed, e.g. two product, t-shirt vs digital camera
different kind of products have different property sets, which require flexible document model
mongoosejs
- higher level interface to MongoDB, it actually uses mongodb.js
- fixed schema, like order, account,
- coding level, schema can be easily changed
- ODM, object document modeling tool
- schema&model instantiate the same object whenever you need to create and save something
- development faster than mongodbjs
it’s better to use the mongoDB native drivers while still using mongoose for the good stuff.