Open
Description
I have a graph as shown in the image above.
When I run the query :
traverse outE('has_component').inV()
from
(select expand(rid) from index:part.part_id where key = 'A')
maxdepth 2 strategy breadth_first
in OrientDB Studio I get all the vertices. In fact that is how I generated the graph visualization.
But when I run the same using client.query() function as follows,
cmd = """
traverse outE('has_component').inV()
from
(select expand(rid) from index:part.part_id where key = 'A')
maxdepth 2 strategy breadth_first
"""
r = client.query(cmd, -1)
I get only the first record (i.e 'A'). Why is this happening? How can get the same output through pyorient as I do through OrientDB Studio?
OrientDB version : 3.0.15
pyorient version : 1.5.5
Metadata
Metadata
Assignees
Labels
No labels