MCPcopy
hub / github.com/sequelize/sequelize / max

Method max

lib/model.js:2126–2128  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

aggregateMethod · 0.95

Tested by

no test coverage detected