maritz / nohm

node.js object relations mapper (orm) for redis
http://maritz.github.io/nohm/
MIT License
500 stars 64 forks source link

Adding props with defaultValue means the new prop doesn't get added #180

Open maritz opened 2 years ago

maritz commented 2 years ago

When adding a new prop with a defaultValue to an existing model, the checks for whether the property is dirty/updated don't trigger and thus cause the update method to not add this property.

Ideas to fix it: