Fix for missing filters on nested selectors

This commit is contained in:
Vikram Rangnekar
2019-11-29 00:09:50 -05:00
parent e82bdbed65
commit 6d47f0df8e
3 changed files with 8 additions and 8 deletions

View File

@ -334,9 +334,10 @@ func (com *Compiler) compileQuery(qc *QCode, op *Operation, role string) error {
}
// Order is important addFilters must come after compileArgs
com.addFilters(qc, s, role)
if s.ParentID == -1 {
qc.Roots = append(qc.Roots, s.ID)
com.addFilters(qc, s, role)
} else {
p := &selects[s.ParentID]
p.Children = append(p.Children, s.ID)