Hi all,
the solution may be the "as" step in "where" one, stated
here by Kelvin Lawrence (e.g.
here).
In that example:
"Starting at JFK, look at all the places we can fly to but only keep those airports that do not have a route back to JFK"
g.V().has('code','JFK').as('s').
out().as('d').
where(__.not(out().as('s'))) // "Inside the where step it provides a convenient shorthand way to refer back to the departure airport."
My case should be something like that:
g.V().hasId(within('a','b')).as('myAlias').
out('outlink').
where(__.as('myAlias')) // <-- still not working :(