neo4j: fix cypher syntax for `Neo4jClient::nodes_with_labels`
authorJean Privat <jean@pryen.org>
Wed, 28 Jun 2017 13:39:39 +0000 (09:39 -0400)
committerJean Privat <jean@pryen.org>
Wed, 28 Jun 2017 13:39:39 +0000 (09:39 -0400)
newer versions of neo4j seem more picky

Signed-off-by: Jean Privat <jean@pryen.org>

lib/neo4j/neo4j.nit

index 2489f9c..8d3edb0 100644 (file)
@@ -290,7 +290,7 @@ class Neo4jClient
 
                # Build the query.
                var buffer = new Buffer
-               buffer.append "match n where \{label_0\} in labels(n)"
+               buffer.append "match (n) where \{label_0\} in labels(n)"
                for i in [1..labels.length[ do
                        buffer.append " and \{label_{i}\} in labels(n)"
                end