Skip to content
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

Support cascades delete #2932

Open
abccbaandy opened this issue Aug 6, 2024 · 2 comments
Open

Support cascades delete #2932

abccbaandy opened this issue Aug 6, 2024 · 2 comments
Assignees
Labels
status: feedback-provided Feedback has been provided

Comments

@abccbaandy
Copy link

As title
Current CrudRepository delete only delete node and relation, but not target node.

Is it possible to support cascades delete too?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 6, 2024
@meistermeier meistermeier self-assigned this Aug 6, 2024
@meistermeier
Copy link
Collaborator

No this is not possible within Spring Data Neo4j. We had some discussion around this, but the problem with cascading deletes is complex to solve if this entity has -for example- other related nodes. Those scenarios can get very challenging because there are very different graphs out there and it is hard to match the expected behaviour for all users.
From a user perspective we learned that multiple applications might work with the data in the database and we wanted to be as defensive as possible. Hope this explains why this feature does not exists and we don't want to introduce it.

@meistermeier meistermeier added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 6, 2024
@abccbaandy
Copy link
Author

But someone like me need this.
Also since SDN have cascade create/update already, I think provide this feature and default disable will be fine, isn't it?

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: feedback-provided Feedback has been provided
Projects
None yet
Development

No branches or pull requests

3 participants