Hi All,
I am trying to page query results, following the documentation example I have come up with the following query.
query test($a: int = 2, $name: string = "Steven") {
ID as var(func: allofterms(name@en, $name)) @filter(has(director.film)) {
director.film {
stars as count(starring)
}
totalActors as sum(val(stars))
}
mostStars(func: uid(ID), orderdesc: val(totalActors), first: $a) {
name@en
stars : val(totalActors)
director.film {
name@en
}
}
}
Running this query gives me:
Expecting a comma. Got: lex.Item [9] "a"
However, replacing first: $a
, with first: 2
works as expected. Am missing something here?