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

Function validKey

dql/parser.go:2795–2801  ·  view source on GitHub ↗

Check for validity of key at non-root nodes.

(k string)

Source from the content-addressed store, hash-verified

2793
2794// Check for validity of key at non-root nodes.
2795func validKey(k string) bool {
2796 switch k {
2797 case "orderasc", "orderdesc", "first", "offset", "after":
2798 return true
2799 }
2800 return false
2801}
2802
2803func attrAndLang(attrData string) (attr string, langs []string) {
2804 idx := strings.Index(attrData, "@")

Callers 2

parseGroupbyFunction · 0.85
godeepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected