Closed tholder closed 12 years ago
Sorry, should have said, I branched this off my previous replace-doc branch, so it's only really the last commit for this function.
I like all these tests!
Cheers Coen.
There is an issue with this, it doesn't work when updating a document. I shall investigate and add test.
@coen-hyde
Weird, I've put a more extensive test on master including update and adding with sub document. Seems to work fine. Not sure why my own codebase is borking with this.
@coen-hyde could you have a look at this? I've had a few instanced where I've need to override export to add custom data but don't want it persisted back to mongo.
This adds a simple 'Ignore' requirement to prevent a field being saved to Mongo.