MCPcopy
hub / github.com/sequelize/sequelize / _expandAttributes

Method _expandAttributes

src/model.js:3393–3408  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

3391 }
3392
3393 static _expandAttributes(options) {
3394 if (!_.isPlainObject(options.attributes)) {
3395 return;
3396 }
3397 let attributes = Object.keys(this.rawAttributes);
3398
3399 if (options.attributes.exclude) {
3400 attributes = attributes.filter(elem => !options.attributes.exclude.includes(elem));
3401 }
3402
3403 if (options.attributes.include) {
3404 attributes = attributes.concat(options.attributes.include);
3405 }
3406
3407 options.attributes = attributes;
3408 }
3409
3410 // Inject _scope into options.
3411 static _injectScope(options) {

Callers 3

findAllMethod · 0.95
generateIncludeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected