MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / isValidArg

Function isValidArg

query/query.go:2741–2748  ·  view source on GitHub ↗

isValidArg checks if arg passed is valid keyword.

(a string)

Source from the content-addressed store, hash-verified

2739
2740// isValidArg checks if arg passed is valid keyword.
2741func isValidArg(a string) bool {
2742 switch a {
2743 case "numpaths", "from", "to", "orderasc", "orderdesc", "first", "offset", "after", "depth",
2744 "minweight", "maxweight", "maxfrontiersize":
2745 return true
2746 }
2747 return false
2748}
2749
2750// isValidFuncName checks if fn passed is valid keyword.
2751func isValidFuncName(f string) bool {

Callers 2

treeCopyFunction · 0.85
newGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…