Constructor
# private new Resource(MongooseModel)
Parameters:
Name | Type | Description |
---|---|---|
MongooseModel |
MongooseModel
|
Class which subclass mongoose.Model |
Classes
Methods
# parseParams(params) → {Object}
Check all params against values they hold. In case of wrong value it corrects it.
What it does exactly:
- removes keys with empty strings for the
number
,float
and 'reference' properties.
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
received from AdminJS form |
converted params
Object
# prepareParams()
Converts params from string to final type