-
Notifications
You must be signed in to change notification settings - Fork 617
Problem with two-way relationship #2177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @mdelmoral
This is definite a bug! The query would make sense when an internal node id would have been used, but you're using an assigned Id. this must be fixed and is in the area of fanning out of queries when circles are detected @meistermeier |
Related fix in the Cypher-DSL: neo4j/cypher-dsl@428c5c5 |
Solved with #2181 |
@michael-simons Thank you for your prompt handling.
|
Hi, I'm a pretty novice in Neo4J and SDN and I'm developing a followers/likes system.
My
pom.xml
has SDN 6.0.5My
User
node is:The method to create the "likes/follows" is:
I have only two users for this test:
AAAA
andBBBB
If
AAAA
likesBBBB
the relationship is created well (AAAA - LIKES -> BBBB
) ✅The
save
method traces are:But now, if
BBBB
tries to like toAAAA
(BBBB - LIKES -> AAAA
) ❌ , I get the next error:Apart from the version problem, I find the
...UNION MATCH (n) WHERE (n.name = $__id__ AND n.version = $__version__)...
quite strange because if my DB has other different nodes (Posts, Groups...) withname
property they will take into account in the query. Wouldn't it be better something like...UNION MATCH (n:User) WHERE...
?Maybe I mapped wrongly the two directions
LIKES
relationship but I don't understand why it works the first like and doesn't in the second in opposite direction.If you need further information, please, let me know.
The text was updated successfully, but these errors were encountered: