I have added delete functionality for simple kind of node in my application

*public class Vote extends BaseEntity {

    @GraphId
    private Long id;

    @RelatedTo(type = VOTED_FOR, direction = Direction.OUTGOING)
    private Decision decision;

    @RelatedTo(type = VOTED_ON, direction = Direction.OUTGOING)
    private Criterion criterion;

    @RelatedTo(type = CREATED_BY, direction = Direction.OUTGOING)
    private User author;*


Also, some other node entities having incoming relation to Vote

Delete query looks like this 

*"MATCH ()-[r]-(v:Vote) WHERE id(v) = {voteId} DELETE r,v"*


When you doing delete all goes fine, no exception, when i trying to find 
all vote nodes from node entity referenced this vote before delete, result 
is as expected all votes except one i deleted are returned 

But when i trying to find deleted vote by id i get not expected exception 

*java.lang.IllegalStateException: No primary SDN label exists .. (i.e one 
starting with _) *


Find work ok for other nodes, Probably it is related to SDN I don't know

Seems like I don't know how properly delete node or something, please help

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to