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

Function isEmpty

dql/parser.go:2813–2816  ·  view source on GitHub ↗
(gq *GraphQuery)

Source from the content-addressed store, hash-verified

2811}
2812
2813func isEmpty(gq *GraphQuery) bool {
2814 return gq.Func == nil && len(gq.NeedsVar) == 0 && len(gq.Args) == 0 &&
2815 gq.ShortestPathArgs.From == nil && gq.ShortestPathArgs.To == nil
2816}
2817
2818// getRoot gets the root graph query object after parsing the args.
2819func getRoot(it *lex.ItemIterator) (gq *GraphQuery, rerr error) {

Callers 2

getRootFunction · 0.85
verifyUniqueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected