* Find the maximum value of field * * @param {string} field attribute / field name * @param {object} [options] See aggregate * * @see * Model.aggregate for options * * @returns {Promise<*>}
(field, options)
| 2203 | * @returns {Promise<*>} |
| 2204 | */ |
| 2205 | static async max(field, options) { |
| 2206 | return await this.aggregate(field, 'max', options); |
| 2207 | } |
| 2208 | |
| 2209 | /** |
| 2210 | * Find the minimum value of field |