MCPcopy
hub / github.com/sequelize/sequelize / _optionsMustContainWhere

Method _optionsMustContainWhere

lib/model.js:3442–3446  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

3440 }
3441
3442 static _optionsMustContainWhere(options) {
3443 assert(options && options.where, 'Missing where attribute in the options parameter');
3444 assert(_.isPlainObject(options.where) || Array.isArray(options.where) || options.where instanceof Utils.SequelizeMethod,
3445 'Expected plain object, array or sequelize method in the options.where parameter');
3446 }
3447
3448 /**
3449 * Get an object representing the query for this instance, use with `options.where`

Callers 2

updateMethod · 0.95
incrementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected