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

Function attrAndLang

dql/parser.go:2803–2811  ·  view source on GitHub ↗
(attrData string)

Source from the content-addressed store, hash-verified

2801}
2802
2803func attrAndLang(attrData string) (attr string, langs []string) {
2804 idx := strings.Index(attrData, "@")
2805 if idx < 0 {
2806 return attrData, langs
2807 }
2808 attr = attrData[:idx]
2809 langs = strings.Split(attrData[idx+1:], ":")
2810 return
2811}
2812
2813func isEmpty(gq *GraphQuery) bool {
2814 return gq.Func == nil && len(gq.NeedsVar) == 0 && len(gq.Args) == 0 &&

Callers 2

getRootFunction · 0.85
godeepFunction · 0.85

Calls 1

IndexMethod · 0.80

Tested by

no test coverage detected