MCPcopy
hub / github.com/sequelize/sequelize / _expandIncludeAll

Method _expandIncludeAll

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

Source from the content-addressed store, hash-verified

741
742
743 static _expandIncludeAll(options) {
744 const includes = options.include;
745 if (!includes) {
746 return;
747 }
748
749 for (let index = 0; index < includes.length; index++) {
750 const include = includes[index];
751
752 if (include.all) {
753 includes.splice(index, 1);
754 index--;
755
756 this._expandIncludeAllElement(includes, include);
757 }
758 }
759
760 includes.forEach(include => {
761 this._expandIncludeAll.call(include.model, include);
762 });
763 }
764
765 static _conformIndex(index) {
766 if (!index.fields) {

Callers 5

findAllMethod · 0.95
aggregateMethod · 0.95
bulkBuildMethod · 0.95
bulkCreateMethod · 0.95
constructorMethod · 0.80

Calls 1

Tested by

no test coverage detected