Lang need stats for each language

Moved from GitHub ratel/67

Posted by MichelDiz:

The Stats will never work in Lang cuz needs “@lang” directive.

var(func: has(<name>)) #This will be always empty when using lang.

The correct way.

{
  var(func: has(name@en)) {
    countValues as count(name@en)
  }

  nodeCount(func: has(name@en)) {
    nodeCount: count(uid)
  }

  stats() {
    totalCount: sum(val(countValues))
    avgCount: avg(val(countValues))
  }
}

paulftw commented :

Tracked in Jira, closing here