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

Method _expandIncludeAll

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

Source from the content-addressed store, hash-verified

764
765
766 static _expandIncludeAll(options) {
767 const includes = options.include;
768 if (!includes) {
769 return;
770 }
771
772 for (let index = 0; index < includes.length; index++) {
773 const include = includes[index];
774
775 if (include.all) {
776 includes.splice(index, 1);
777 index--;
778
779 this._expandIncludeAllElement(includes, include);
780 }
781 }
782
783 includes.forEach(include => {
784 this._expandIncludeAll.call(include.model, include);
785 });
786 }
787
788 static _conformIndex(index) {
789 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