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

Function validKeyAtRoot

dql/parser.go:2781–2792  ·  view source on GitHub ↗
(k string)

Source from the content-addressed store, hash-verified

2779}
2780
2781func validKeyAtRoot(k string) bool {
2782 switch k {
2783 case "func", "orderasc", "orderdesc", "first", "offset", "after":
2784 return true
2785 case "from", "to", "numpaths", "minweight", "maxweight", "maxfrontiersize":
2786 // Specific to shortest path
2787 return true
2788 case "depth":
2789 return true
2790 }
2791 return false
2792}
2793
2794// Check for validity of key at non-root nodes.
2795func validKey(k string) bool {

Callers 1

getRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected