All Decorators
This Page shows all the decorators that can be used for / in a class.
- All Property decorators:
@prop
is the most important decorator, because it defines values(|keys) that are then in the model & document.
- All Class decorators:
@modelOptions
, used for Schema Options, an existing Mongoose and an existing Connection@index
is for indexes, that are NOT defined in the prop (mainly for compound indexes)@searchIndex
is for defining a search index.@plugin
is for adding plugins. Please note that plugins cannot modify the types of prop.@queryMethod
is for adding custom query Methods.- Hooks: