I am trying to run the following code.
CALL gds.graph.create.cypher( 'my-cypher-graph', 'MATCH (n:Person) RETURN id(n) AS id', 'MATCH (a:Person)-[:LIKES]->(b:Person) RETURN id(a) AS source, id(b) AS target' ) YIELD graphName, nodeCount, relationshipCount, createMillis;
But I got this error: Neo.ClientError.Procedure.ProcedureCallFailed
Failed to invoke procedure gds.graph.create.cypher: Caused by: java.lang.IllegalArgumentException: Node-Query returned no nodes I am running Neo4J 4.1.0
Can you please help?