It seems current syntax does not allow to reference to previous visited node. Could you create a feature request<https://github.com/orientechnologies/orientdb/issues/new> ?
Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014-04-27 19:16 GMT+03:00 Gianpaolo Altamura <[email protected]>: > I have this scenario: > > n nodes of class Nodes with propertu name > > name > NAME1 > NAME2 > .... > > m edges of class moves (with property dtMove) between nodes: > > out in dtMove > RID1 RID2 01-01-2014 > RIDX RIDY 10-03-2014 > ... > > > Starting from a node in a given date I want to find all possible paths > between the nodes until a later date (for example, after 10 days) > > For example: > > Starting from A node in date 01/01/2014 I want to find a path like: > > A ---->B in date 01/01/2014 > > B---->C,D,E in date 03/01/2014 > > C---->D in date 05/01/2014 > ... > > I approached a query like this: > > select out.name, in.name, dtMove > from (traverse in, out_moves from (select from movimentazioni where > out.name='NodeName' and dtMove ='2014-01-01')) > where @class='moves' and dtMove between '2014-01-01' and '2014-01-08' > > > but i don't know how to set that dtMove of new visiting node must be > greater than dtMove of parent node. I tried with $parent variable but is > null... > > Can anyone help me? > > Thanks in advance, > Gianpaolo. > > -- > > --- > 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.
