Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to use MongoDB with Node.js?

I'm currently using MongoDB native and I'm familiar with it.

Only thing I'm worrying about it is my source quality.

Because of the native driver's nature, nested loop is inevitable.

I have looked at Mongoose but I prefer schemaless way of using MongoDB.

And I could not make a choice among

mongodb-native, mongoose (using mix type), mongolian, mongous, mongoskin

Or is there a way or tutorial to use MongoDB native with keeping the source DRY?

like image 426
jwchang Avatar asked Mar 04 '12 14:03

jwchang


1 Answers

mongodb-native will shortly be on the officially support driver list for mongoDB, so from that perspective, it is probably the safest choice. Combine that (for quality of support) with the Raynos answer in the comments and that should make the choice for you.

like image 170
Adam Comerford Avatar answered Oct 08 '22 19:10

Adam Comerford