This repository was archived by the owner on Dec 27, 2024. It is now read-only.
0.19.0
New Features
#225 @BeforeSave and @BeforeCreate can now be manually triggered from model.emitBeforeSave() and model.emitBeforeCreate().
#227 If a model has properties with sub documents represented by child models, the @BeforeSave and @BeforeCreate decorated methods will now be called recursively (parent to child order).
Bug Fixes
#223 IFromJsonOptions is now properly exported
#224 it's now official that if you have a property decorated with both @Db and @Json the correct place to add {mode: SomeModel} is in @Db. @Json decorators will pick up their models from @Db, but not the other way around.