(options)
| 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) { |
no test coverage detected