I am a newbie. I am a faculty and NWU and we have a StreamingAnalytics course where we walk students through a couple lessons on Neo4J. We have a retail example that we use to walk students through links, relationships. One of the exercises uses gds.pagerank.write.
The following runs in earlier 4.1.5 version of Neo4j.
CALL gds.pageRank.write({
nodeQuery: 'MATCH (c:Customer)-[:WROTE_REVIEW]->()-[:REVIEWS]->(p), (p)-[:IN_CATEGORY]->(:Category {category: $category}) WITH c, count(*) AS reviews WHERE reviews >= $cutoff RETURN id(c) AS id',
relationshipQuery: 'MATCH (c1:Customer)-[:WROTE_REVIEW]->()-[:REVIEWS]->(p), (p)-[:IN_CATEGORY]->(:Category {category: $category}) MATCH (c1)-[:FRIEND_WITH]->(c2) RETURN id(c1) as source, id(c2) AS target',
writeProperty: "tablesPageRank",
validateRelationships: false,
parameters: {category: "Tables", cutoff: 1}
})
YIELD nodePropertiesWritten, ranIterations
RETURN nodePropertiesWritten, ranIterations
But running this on the latest version returns the error,
Type mismatch: expected String but was Map (line 1, column 25 (offset: 24))
"CALL gds.pageRank.write({"
^
Has this changed in the latest version? I do not see examples of how this is supported in the latest version.
Thank you
Krishna