Add Support for Neo4j Version 5
seabamirum opened this issue · comments
I migrated to Neo4j version 5.4, and noticed that spatial functions are no longer working. The getRelationships() method in Neo4j v5 now returns a ResourceIterable
instead of Iterable
, so a NoSuchMethodError
is thrown.
Caused by: org.neo4j.driver.exceptions.ClientException: Failed to invoke procedure `spatial.withinDistance`: Caused by: java.lang.NoSuchMethodError: 'java.lang.Iterable org.neo4j.graphdb.Node.getRelationships(org.neo4j.graphdb.Direction, org.neo4j.graphdb.RelationshipType[])'
at org.neo4j.driver.internal.util.ErrorUtil.newNeo4jError(ErrorUtil.java:76) ~[neo4j-java-driver-5.4.0.jar:5.4.0-94f9c20aa48a5f4328c03953bf1bc64dab271784]
Compiled a local branch against Neo4j5 and this seems to work again. Most of the changes were related to logging. Not sure how to get this into a PR though.