- Update Dependencies
mongoose
to 5.9.14@types/mongoose
to 5.7.19tslib
to 2.0.0typescript
to 3.9.2
- Fix duplicate hooks / virtuals / queryMethods / plugins / indices via inheritance [#218 ]
- improve TSDoc of some functions
- Fix
queryMethod
reflection - Set proper function type for
queryMethod
- Added the ability to define option
ref
with an arrow-function (ref: () => type
) - All Decorators are now exported PascalCased & camelCased
- Actually export the
@queryMethod
decorator - The
@queryMethod
decorator now has correct types [#247] - The functions
addModelToTypegoose
,getModelForClass
,buildSchema
,deleteModelWithClass
,getDiscriminatorModelForClass
now have theT
generic removed (it was unnecessary) - The functions
addModelToTypegoose
,getModelForClass
,getDiscriminatorModelForClass
now have an new optional genericQueryHelpers
- The Type
ReturnModelType
now has theT
generic removed (it was unnecessary) - The Type
ReturnModelType
now has an second optional genericQueryHelpers
- Fix bug where
ref: Class
didnt executegetName
when Virtual-Populate was used - Allow use of
@prop
for arrays & maps (In preparation for 8.0), it is now auto-detected based ondesign:type
- The Decorator
@plugin
now automatically infers the options if the plugin & function have typings and use options - [IC] add some tslint rules & apply them
- [IC] enable "strictNullChecks" & fix accordingly