neo4j / apoc

Apache License 2.0
84 stars 27 forks source link

[wbVWvi0y] Solves apoc.meta.data bug with reserved names for relationships and nodes #584

Closed ncordon closed 7 months ago

ncordon commented 7 months ago

Solves #583

Why

Because a node named NODE or a relationship named RELATIONSHIP could not be used.

When doing

CREATE (a:NODE)-[r:RELATIONSHIP]->(m:Movie)
CALL apoc.meta.data()

we were getting:

java.lang.IllegalArgumentException: duplicate element: RELATIONSHIP
gem-neo4j commented 6 months ago

@ncordon Was this cherry-picked to 4.4 as well?