Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
Description
With TP3 M7, I can add multiple labels to Neo4j vertex:
gremlin> v = g.addVertex(label, 'test', 'wikibaseId', 'test') ==>v[3] gremlin> v.addLabel('test2') ==>null gremlin> v.labels() ==>test ==>test2
However, if I try a lookup by this label, it does not work:
gremlin> g.V().has(label, 'test2') gremlin> g.V().has(label, 'test') gremlin> g.V().has(label, 'test').hasNext() ==>false
This lookup works for nodes with single label, but not for nodes with multiple labels. This, however, works:
gremlin> g.cypher('MATCH (x:test2) RETURN x')
==>[x:v[3]]
So Neo4j query works fine, while TP3 one does not.