Moved from GitHub tutorial/31
Posted by kortschak:
The task on p11 attempts to get the tutorial user to do too much at once. I can see what you are trying for, but there could be an intermediate “show answer” which does a walk over the graph getting some of the data as a simple query, e.g.:
{
q(func: has(director.film)) @cascade {
name@en
max(val(date))
director.film(orderdesc: initial_release_date) {
name@en
date as initial_release_date
}
}
}
This partially decouples the walk from the variable use for the main query, which is what is being taught on this page.