neo4j / apoc

Apache License 2.0
81 stars 27 forks source link

[3yfKdDEx] Give a clear error message when a relationship is defined before its node #636

Closed gem-neo4j closed 2 months ago

gem-neo4j commented 2 months ago

If a relationship in a graphml file are defined before the nodes they reference, a null error is thrown which is not very descriptive. So this updates it to make it clearer.

Note, I looked into holding off and continuing with the nodes and coming back to the missed relationship, but it gets complicated because the file is read line by line and the properties etc are part of this. But let me know if you think we should be doing that approach instead. It is doable, but I am not sure of the use case (as this is the first issue finding this).