CRUD operations with Node.js and MongoDB -
what optimal way perform crud operations when using node.js mongodb. can reuse same queries work on mongo shell? advantages odm mongoose provide? other odms fit mean.io stack?
vmr. well, guess depends of want do.
lets take mongoose
says in website:
mongoose provides straight-forward, schema-based solution modeling application data , includes built-in type casting, validation, query building, business logic hooks , more, out of box.
resuming understood of helps model database , helps mantain logic organized using model in mvc. it's mature odm , recomended using mvc.
in personal experience started using monk
, did trick while, started need use aggregate , other stuff apparently monk can't handle. , don't wanted tie system model because mutable project, started using mongoskin is, @ least now, perfect me because can use pratically same query use @ robomongo (which navicat, pgadmin, phpmyadmin mongodb) in expressjs code.
Comments
Post a Comment