loading...

Discussion on: Mongodb-native over mongoose?

Collapse
kevnz profile image
Kevin Isom

I've used Mongo in my node apps for at least 7 years, I've used Mongoose once in that time, and hated it (was chosen before I got onto the project) Otherwise I've either used mongojs or mongodb, much nicer experience. If you are using a schema-less db, why on earth do you want to bring in a schema? Maybe validation? But really, your validation should probably be somewhere before hitting the db/model, at either the api entry point or before it ever leaves the browser. So validation should be sharable between the client and server, not at the db level.

Collapse
tojacob profile image
Jacob Samuel G. Author

That's!
That's what I think about validation, and that's the main reason why I migrated to the native controller.