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

Function parsePredsFromFilter

edgraph/access.go:905–917  ·  view source on GitHub ↗
(f *dql.FilterTree)

Source from the content-addressed store, hash-verified

903}
904
905func parsePredsFromFilter(f *dql.FilterTree) []string {
906 var preds []string
907 if f == nil {
908 return preds
909 }
910 if f.Func != nil && len(f.Func.Attr) > 0 {
911 preds = append(preds, f.Func.Attr)
912 }
913 for _, ch := range f.Child {
914 preds = append(preds, parsePredsFromFilter(ch)...)
915 }
916 return preds
917}
918
919type accessEntry struct {
920 userId string

Callers 1

parsePredsFromQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected