MCPcopy
hub / github.com/dgraph-io/dgraph / populatePostAggregation

Method populatePostAggregation

query/query.go:1379–1392  ·  view source on GitHub ↗
(doneVars map[string]varValue, path []*SubGraph,
	parent *SubGraph)

Source from the content-addressed store, hash-verified

1377}
1378
1379func (sg *SubGraph) populatePostAggregation(doneVars map[string]varValue, path []*SubGraph,
1380 parent *SubGraph) error {
1381
1382 for idx := range sg.Children {
1383 child := sg.Children[idx]
1384 path = append(path, sg)
1385 err := child.populatePostAggregation(doneVars, path, sg)
1386 path = path[:len(path)-1]
1387 if err != nil {
1388 return err
1389 }
1390 }
1391 return sg.valueVarAggregation(doneVars, path, parent)
1392}
1393
1394// Filters might have updated the destuids. facetMatrix should also be updated to exclude uids that
1395// were removed..

Callers 1

ProcessQueryMethod · 0.80

Calls 1

valueVarAggregationMethod · 0.95

Tested by

no test coverage detected