I have a (gremlin 3.46, conf/gremlin-server-neo4j.yaml) db which I interact with via gremlinpython
The following queries both return results:
g.V(0).as_('a').out().match(as_('b').has("groupId",1)).select('b').next()
g.V(0).as_('a').out().match(as_('b').has("groupId",2)).select('b').next()
but I am unable to get the following query to work:
g.V(0).as_('a').out().match(as_('b').has("groupId",1), as_('c').has("groupId",2)).select('b', 'c').next()
I have tried wrapping the arguments to match in a tuple or a list but neither seems to work.
For now, I have resorted to 'rewinding' back via select('a') to fetch multiple elements in a match, but this is ugly and probably suboptimal.