Dickon Reed
Dickon Reed

Reputation: 3625

Which mongo driver for node should I use?

The Node wiki lists a few different mongo driverrs for node. What are the pros and cons on each one?

Right now I want to efficiently tail a Mongo capped collection from node, but I suspect I will end up using mongo from node quite heavily and if stackoverflow can save me from having to switch to a different driver later that'd be great.

In general I have no particular interest in object relational mappers; I mainly want to make clean and efficient insert, update and find calls asynchronously.

Upvotes: 11

Views: 5822

Answers (1)

clyfe
clyfe

Reputation: 23770

It's hard to say which is the best.

My current favorites from the api-sugar point of view are:

  • Mongoose as a ODM
  • Mongoskin witch basically replaces the driver's callbacks-based api with one based on promises (when/then)

Upvotes: 9

Related Questions