Getting a total count of the edge connections

try sum function
https://docs.dgraph.io/query-language/#sum-and-avg

{    
  var(func: has(owns)) {
    c as	count(owns)
  }
	  computer() {
   total:  sum(val(c))
  }
}

2 Likes