Multi hop queries

I am unable to assign a variable name for kleen star pattens.
How to get the output in graph format (total path from from person1 to person 2) for the queries like
person:p1 - (FRIEND_OF *2…5 ) - person:p2 ?

@Aravind Unfortunately, you cannot assign alias names to Kleen stars as mentioned in the documentation here

No alias allowed for edge with Kleene star

An edge alias may not be used when a Kleene star is used. The reason is that when there are a variable number of edges, we cannot associate or bind the alias to a specific edge in the pattern.

Thanks @Jon_Herke for the confirmation

1 Like

@Aravind You’re welcome!