Count needs to take a filter keyword or a filter struct/function as an arg
elbow-jason opened this issue · 1 comments
elbow-jason commented
As in this example:
{
var(func: allofterms(name, "Taraji Henson")) {
actor.film {
F as performance.film {
G as count(genre)
genre {
C as count(~genre @filter(uid(F)))
}
}
}
}
Taraji_films_by_genre_count(func: uid(G), orderdesc: val(G)) {
film_name : name@en
genres : genre (orderdesc: val(C)) {
genre_name : name@en
}
}
}'
elbow-jason commented
Fixed with fe1ee37