Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bricestacey
on Sept 12, 2011
|
parent
|
context
|
favorite
| on:
MongoDB 2.0 Released
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.
FuzzyDunlop
on Sept 12, 2011
|
next
[–]
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.
gregwebs
on Sept 12, 2011
|
prev
[–]
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: