Skip to content

Lang need stats for each language #67

@MichelDiz

Description

@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))
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions