Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-20-2020 04:45 PM
Does the Spring repository delete method work like the Cypher detach delete? In other words if I delete an Entity using
myEntityRepository.delete(myEntity);
will that delete all relationships with myEntity
?
or do I need to write a @Query MATCH(...)
that does the detach delete
Thanks!
01-21-2020 02:42 PM
The delete(entity)
method will create a delete statement that does about the same and looks like MATCH (n) WHERE ID(n) = $id OPTIONAL MATCH (n)-[r0]-() DELETE r0, n
.
01-21-2020 03:19 PM
Excellent! Thanks Gerrit
All the sessions of the conference are now available online