MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / hasVars

Method hasVars

dql/parser.go:848–858  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

846}
847
848func (f *FilterTree) hasVars() bool {
849 if (f.Func != nil) && (len(f.Func.NeedsVar) > 0) {
850 return true
851 }
852 for _, fch := range f.Child {
853 if fch.hasVars() {
854 return true
855 }
856 }
857 return false
858}
859
860// getVariablesAndQuery checks if the query has a variable list and stores it in
861// vmap. For variable list to be present, the query should have a name which is

Callers 1

parseDirectiveFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected