I have experimented with the documentation and the console but didn't find a way to do this.
Vertex with property "A",Vertex with property "B" and Edge with label "Connected".
I want to find out the edges that connect these two vertices and get the id's of the edges.
I haven't been able to do that getting the edges. I can do
select from (SELECT EXPAND(BOTH('Connected')) FROM Tag WHERE prop='A') where prop='B'
but I need to get the edge @rid. if I change BOTH to BOTHE then how can I specifically ask for the tag with prop B.
I have also tried doing :
SELECT FROM Connected WHERE IN=(SELECT FROM TAG WHERE prop = 'A') AND OUT = (SELECT FROM TAG WHERE prop = 'B')
but I don't get anything from that
Update:
select from Connected where (out in (select from Tag where tagName='testTagA') AND in in (select from Tag where tagName='testTagB')) OR (out in (select from Tag where tagName='testTagB') AND in in (select from Tag where tagName='testTagA'))
this solves the issue but isn't there a more straightforward way? I think this scans all the edges with the given label.