(treeNode)
| 1080 | }); |
| 1081 | |
| 1082 | const recursiveExecutionTree = async (treeNode) => { |
| 1083 | const { path, children } = treeNode; |
| 1084 | const pathResponse = includePath( |
| 1085 | this.config, |
| 1086 | this.auth, |
| 1087 | this.response, |
| 1088 | path, |
| 1089 | this.context, |
| 1090 | this.restOptions, |
| 1091 | this, |
| 1092 | ); |
| 1093 | if (pathResponse.then) { |
| 1094 | const newResponse = await pathResponse |
| 1095 | newResponse.results.forEach(newObject => { |
| 1096 | // We hydrate the root of each result with sub results |
| 1097 | this.response.results[indexedResults[newObject.objectId]][path[0]] = newObject[path[0]]; |
| 1098 | }) |
| 1099 | } |
| 1100 | return Promise.all(Object.values(children).map(recursiveExecutionTree)); |
| 1101 | } |
| 1102 | |
| 1103 | await Promise.all(Object.values(executionTree).map(recursiveExecutionTree)); |
| 1104 | this.include = [] |
nothing calls this directly
no test coverage detected