Search code examples
node.jsmongoosenode-mongodb-native

node-mongodb-native or Mongoose


We are going to develop an application that will work with MongoDB. The users of the application will create custom entities with the help of the GUI so we don't have any predefined entities while developing the application. Should we go with mongodb-native or use Mongoose?

Thanks.


Solution

  • If you don't plan on using predefined entities or "schema" don't use Mongoose. I suggest using a wrapper around the native driver, such as https://github.com/kissjs/node-mongoskin , it does everything the native driver is doing, but much simpler.