Hi everyone,
Pretty new with orientdb and I can't find any examples regarding my current
situation.
I'm using OrientDB version 2.0.11. Also, since I'm working with node, I'm
using the official js library here
https://github.com/orientechnologies/orientjs.
Though, that shouldn't really matter since I can manually write full
queries myself.
Suppose I have three vertexes
first_node(#11:1) --hasEdge--> second_node --hasEdge--> third_node
I would like to query in such a way that the result looks like
```
{
first_node: {
properties for this first_node...,
second_node: {
properties for second_node...,
third_node: {
properties for third_node...
}
}
}
}
````
Now, I can get one level deep using a Fetchplan and it works great:
`SELECT *, out('hasEdge') as first_edge FROM #11:1 FETCHPLAN first_edge:1`
This returns me
```
{
first_node: {
first node properties...,
first_edge: {
second_node properties...
}
}
}
```
How do I extend this out another level? I've tried stuff like
`SELECT *, out('hasEdge').out('hasEdge') as first_edge FROM #11:1 FETCHPLAN
first_edge:2`
But I end up only getting the the third_node properties in the `first_edge`
key
Thanks in advance.
Cheers,
Eric
--
---
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.