coen-hyde/Shanty-Mongo — comment on commit c624aa4c2711c65814cdeab2bc4a49e61982a7a0
File:  line 0
By coen-hyde:

It probably should. I just haven't got around to doing it.

Originally it wasn't possible to feed data into the constructor without a bunch of settings in the config array. I didn't document it's usage but people kept using it. So I made it work.

Unless the data comes from a user I wouldn't want to run validation on every document creation. So what probably needs to happen is that by default validation and filtering occurs but if there is some config setting indicating it is a raw document straight out of mongo then by pass it.