hiddentao / robe

MongoDB ODM for Node.js using ES6 generators. Supports schema validation, raw querying, oplog tailing, etc.
http://hiddentao.github.io/robe
MIT License
177 stars 12 forks source link

Bugfix : Set a field value to null #3

Closed yabab-dev closed 9 years ago

yabab-dev commented 9 years ago

Hi,

Just a little bugfix.

I have an issue if I load a document (or create a new one) and if I change the value of one field to null (or 0, false, undefined, empty string) changes() function doesn't return the edited field with a new empty value (he kept the previous value), and save() doesn't update the document properly.

Sorry for my poor english :) Great project !

hiddentao commented 9 years ago

Thanks!