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