Alessandro,

That wouldn't work because the paths are truncated when the traverse hits a 
pre-traversed path.  That was the first thing I tried.

However, I stumbled on the solution...

select *,in(<link>) as parent from (traverse in(<link>) from [ <starting 
nodes> ])

Then I can use the parent value to re-construct the path and extract 
whatever I need.

Gary

On Wednesday, July 22, 2015 at 11:11:55 AM UTC-4, [email protected] 
wrote:
>
> Hi Gary,
> if you want to get the path you can use this query:
> select $path from (traverse in(<link>) from [ <starting nodes> ])
>
> Regards,
> Alessandro
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to