* Find the maximum value of field * * @param {string} field attribute / field name * @param {object} [options] See aggregate * * @see * {@link Model.aggregate} for options * * @returns {Promise<*>}
(field, options)
| 2124 | * @returns {Promise<*>} |
| 2125 | */ |
| 2126 | static async max(field, options) { |
| 2127 | return await this.aggregate(field, 'max', options); |
| 2128 | } |
| 2129 | |
| 2130 | /** |
| 2131 | * Find the minimum value of field |