Moved from GitHub ratel/9
Posted by MichelDiz:
References: Query for total number of nodes · Issue #1619 · dgraph-io/dgraph · GitHub
Can serve as statistics in Ratel.
In the Schema field put an option to request the total nodes for that predicate. It updates as the user clicks to request each one. Ratel would generate a query like the one below.
e.g:
{
total (func: has (director.film) ) {
count(uid)
}
}