loading...

re: Who's going to write us a post on alternatives to mongoose ? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Ok let's get back to why it might be useful do define models: The database needs protections from it's foremost enemy: the developer If you have ...

The database needs protections from it's foremost enemy: the developer
If you have some basic layered structure of data you force the developer to think instead of just vomiting data in your database.
If you have at least partial structured data you also have a bullshit filter of what comes into a database.

This.

This is actually an argument I can agree with. Personally I do data validation on my database abstraction layer, but using mongoose for that is also a good option.

code of conduct - report abuse