neo4j-contrib / neo4j-graph-algorithms

Efficient Graph Algorithms for Neo4j
https://github.com/neo4j/graph-data-science/
GNU General Public License v3.0
767 stars 196 forks source link

Cypher Project config {} erroring in graph algorithms? #921

Closed ghost closed 4 years ago

ghost commented 4 years ago

The query below was ran on Neo4j Desktop Version 1.2.1 (1.2.1.1042) Neo4j Browser on macOS Catalina, but I noticed the problem below in the Graph Algorithms Playground too.

It's like it's only looking for the arguments of the Label Projection

Query

CALL algo.labelPropagation(
  'MATCH (n) RETURN n', 
  {graph: 'cypher', write: true});

Neo.ClientError.Statement.SyntaxError

Type mismatch: expected String but was Map (line 3, column 3 (offset: 55))
"  {graph: 'cypher', write: true});"
   ^
ghost commented 4 years ago

Although this runs successfully

CALL algo.labelPropagation.stream('MATCH (n) RETURN n');