title: What is the best way to validate data in mongo?
body: <p>What's the best way to validate data being inserted or updated into MongoDB? Is it to write some sort of server executed Javascript code that does the validation?</p>