Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Some ODMs like Mongoid have a strict mode that requires a field to be mapped in order to save it to the db. This saves you from typos wrecking havoc. You should probably unit test your queries anyway.


Yeah. Mongoose on Node requires you to code and instantiate a document schema before you can do anything with the database.

Gotta sacrifice some flexibility for a bit of safety.


yep, either use an ODM (or some system that guarantees correctness) or make sure your raw queries are well tested.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: