Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
633 stars 197 forks source link

Get node or relationship by id - bad practice #233

Closed m0067 closed 3 years ago

m0067 commented 7 years ago

Hello, I have some issue. Follow docs of neo4j, it is not good use MATCH (user:User), (followers:User) WHERE id(user) = 1 AND id(followers) = 2 CREATE (followers)-[:FOLLOWS]->(user) RETURN followers; it should be better use uuid of application for future consistency MATCH (user:User), (followers:User) WHERE user.uuid = 'unique' AND followers.uuid = 'unique2' CREATE (followers)-[:FOLLOWS]->(user) RETURN followers; ` So how can I use second variant?

Mulkave commented 6 years ago

Thanks for the suggestion! will look into it in the next release.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.