I have two different nodes: components and functions, functions relate to components, both having "entityId" and "tenantId".
I created a repository interface extending Neo4jRepository
What works is a a method:
List findAllByComponentEntityIdAndTenantId(String componentEntityId, String tenantId);
returning a list of functions that have a related component with the given entityId.
What does not work is the same for deleting functions:
Long deleteAllByComponentEntityIdAndTenantId(String componentEntityId, String tenantId);
Looks like the translation to cypher is creating a wrong query.
Spring Data Neo4j Version 6.3.3