MCPcopy Index your code
hub / github.com/parse-community/parse-server / recursiveExecutionTree

Function recursiveExecutionTree

src/RestQuery.js:1082–1101  ·  view source on GitHub ↗
(treeNode)

Source from the content-addressed store, hash-verified

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 = []

Callers

nothing calls this directly

Calls 1

includePathFunction · 0.85

Tested by

no test coverage detected