-
Notifications
You must be signed in to change notification settings - Fork 154
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
Impossible to create/connect a node while deleting some relationships in the same mutation #440
Comments
Hey @mathix420! This sounds like it could be similar to #235, where the multiple disconnects are essentially branching off into two, meaning that the create operation is duplicated. Will likely be addressed by also wrapping disconnects in a subquery as we did for the other issue. Thanks for the report, we'll take a look. 🙂 |
Hey @darrellwarde, thanks for your fast reply! I will have a look at this today, I can probably work on this PR. 🙂 |
Sure thing, if you like, always appreciated! 🙂 |
Hey @mathix420, just been taking a short look at this - it looks like A lot of TCK test changes for these kinds of fixes, our apologies for that. 😞 |
No problem, I will have a look to this as well. 😉 |
Hi neo team, hope y'all doing well!
I just ran into a bug trying to
disconnect
more than 1 node whilecreating
andconnecting
another node at the same time.With the following context I got this error message:
The thing is that
(:Category { id: "category-55" })
do not exist.Also, everything goes right if there is no more than one node disconnected while at least a node is created.
If no nodes are created, everything is working fine, even with multiple disconnected nodes per query.
Type definitions:
To Reproduce
Steps to reproduce the behavior:
Mutation:
Variables used to mutate:
Expected behavior
category-55
should have been created as well as the relation between the videocategory-1
andcategory-2
relation should be deletedSystem (please complete the following information):
Ubuntu 20.04.2 LTS
5.4.0-80-generic
@neo4j/graphql@2.0.1
@neo4j/graphql-ogm@2.0.1
neo4j-driver@4.3.2
v12.22.3
ts-node-dev ver. 1.1.8 (using ts-node ver. 9.1.1, typescript ver. 3.9.10)
Additionnal infos
There are no changes in the CQL query - apart from the variables - between a mutation with one deleted relationship and a mutation with many deleted relationships.
The text was updated successfully, but these errors were encountered: