Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which MongoDB Driver for Node.js?

The choices are over whelming. I looked at Mongoose and didn't like b/c I don't want I should have to model data when using Mongo. Any help is appreciated :)

like image 934
mdgrech Avatar asked Feb 11 '12 01:02

mdgrech


People also ask

Which drivers are useful to connect node js with MongoDB?

Connect your Node. js applications to MongoDB and work with your data using the Node. js driver. The driver features an asynchronous API that you can use to access method return values through Promises or specify callbacks to access them when communicating with MongoDB.

Should I use mongoose or MongoDB driver?

Mongoose is not the only ODM library, there are hapijs/joi, MongoDB schemas, etc. And while Mongoose is good especially in areas of inferring data types, we should choose to use the MongoDB schema validation for schemas validation.

Is MongoDB compatible with node js?

All features are supported. The Driver version will work with the MongoDB version, but not all new MongoDB features are supported.


1 Answers

There is really only one node.js MongoDB driver.

There are several other tools that sit on top of this driver.

  • Mongoose is an ORM tool, but completely unnecessary.
  • You may want to take a look at Mongoskin or Mongolia which provide less verbose access than the "native" driver.

Good list of MongoDB/Node.JS tools here.

like image 57
Gates VP Avatar answered Sep 21 '22 18:09

Gates VP