neo4j-contrib / neomodel

An Object Graph Mapper (OGM) for the Neo4j graph database.
https://neomodel.readthedocs.io
MIT License
939 stars 231 forks source link

Fix #589 match relationship with same name as source and target nodes #753

Closed mariusconjeaud closed 11 months ago

mariusconjeaud commented 11 months ago

See #589

To prevent this, when building a traversal, name the target node as "{traversalname}{relationship_name}".

So the new query will look like :

MATCH (extension) WHERE id(extension)=12796 WITH extension MATCH ((extension)-[r1:extension]->(extension_r1:Extension)) RETURN extension_r1

sonarcloud[bot] commented 11 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication