Hi,
you could use traversedVertex() functions defined starting from
1.7-SNAPSHOT. Example:

select $path, traversedVertex(-1) from ( traverse out() from #9:1 while
$depth < 10 )

Where -1 means last one.

https://github.com/orientechnologies/orientdb/issues/2309

Lvc@



On 2 May 2014 13:42, Gianpaolo Altamura <[email protected]> wrote:

> Hi Luca,
> i solved the problem with blueprint java API but I'm still trying a
> solution that uses a query with Traverse command.
> Unfortunatelly $path doesn't work like an array, but is a string. I need a
> variable that point to the previous visited node and I think that I will
> use $stack variable.
> I tried in OrientDB studio but it doesn't work ($stack is null...). I will
> try as soon as possible with java api.
>
>
>  --
>
> ---
> 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.
>

-- 

--- 
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