* Find the sum of field * * @param {string} field attribute / field name * @param {object} [options] See aggregate * * @see * Model.aggregate for options * * @returns {Promise }
(field, options)
| 2233 | * @returns {Promise<number>} |
| 2234 | */ |
| 2235 | static async sum(field, options) { |
| 2236 | return await this.aggregate(field, 'sum', options); |
| 2237 | } |
| 2238 | |
| 2239 | /** |
| 2240 | * Builds a new model instance. |
no test coverage detected