Skip to content

Remove ids constraint on delete relationship via CUD#475

Open
stfnzl wants to merge 1 commit intoneo4j:mainfrom
stfnzl:delete-relationship-without-constraint-on-from-nor-to
Open

Remove ids constraint on delete relationship via CUD#475
stfnzl wants to merge 1 commit intoneo4j:mainfrom
stfnzl:delete-relationship-without-constraint-on-from-nor-to

Conversation

@stfnzl
Copy link
Copy Markdown

@stfnzl stfnzl commented Dec 27, 2025

Deletions no longer require specifying the relationship IDs on "from" and "to" enabling the possibility to remove all relationships from or to nodes with specific labels.

@stfnzl stfnzl requested a review from a team as a code owner December 27, 2025 21:37
@ali-ince
Copy link
Copy Markdown
Contributor

Thanks for raising this PR @stfnzl. However, I think this is a bit of risky change on the product that I would like to learn more about the use case. Could you please elaborate a bit on your use case and why you need this change?

@stfnzl
Copy link
Copy Markdown
Author

stfnzl commented Jan 19, 2026

Hi @ali-ince.

Imagine you have a kafka topic with the following structure:

{ "items": ["foo", "bar", "baz"] }

The goal is to synk these items into neo4j as nodes with a certain label, but any nodes not included needs to be deleted.
The idea is to have a kafka stream that produces "node delete" and then "node create" via a flatmap on "items".
The implemented workaround is to add a dummy property on the nodes and use that as "id".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants