* Find the minimum value of field * * @param {string} field attribute / field name * @param {object} [options] See aggregate * * @see * {@link Model.aggregate} for options * * @returns {Promise<*>}
(field, options)
| 2139 | * @returns {Promise<*>} |
| 2140 | */ |
| 2141 | static async min(field, options) { |
| 2142 | return await this.aggregate(field, 'min', options); |
| 2143 | } |
| 2144 | |
| 2145 | /** |
| 2146 | * Find the sum of field |