* Find the sum of field * * @param {string} field attribute / field name * @param {object} [options] See aggregate * * @see * {@link Model.aggregate} for options * * @returns {Promise<number>}
(field, options)
| 2154 | * @returns {Promise<number>} |
| 2155 | */ |
| 2156 | static async sum(field, options) { |
| 2157 | return await this.aggregate(field, 'sum', options); |
| 2158 | } |
| 2159 | |
| 2160 | /** |
| 2161 | * Builds a new model instance. |
no test coverage detected