I think I may have figured it out. Seems like the best way is to create a function that takes the list of 'names' and concatenates them with slashes.
On Monday, January 5, 2015 5:38:16 PM UTC-5, Kyle Hendricks wrote: > > If I traverse a graph with vertices with 'name' properties, is there any > way, for each vertex, to concatenate the ancestor 'name' properties into a > path? > > Closest I can get is: > SELECT traversedVertex(0, 1000).name FROM (TRAVERSE Object.in_Parent, > Parent.out FROM #11:1098922) > > This gives me back an EMBEDDEDLIST of the names for each ancestor vertex. > > Ideally I'd like to 'implode' those with a slash so I would get > '/dir1/dir2/dir3'; > > Thanks! > -- --- 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.
