If this does not work for you then the only issue I can find after 
recreating your nodes is with the relationship direction. 
If you have in your graph (p)-[r:MODIFY_TIME]->(m) and you try to MATCH 
(p)-[r:MODIFY_TIME]->(m) it will return the (r). BUT if you have 
(p)<-[r:MODIFY_TIME]-(m) and you try to match (p)-[r:MODIFY_TIME]->(m) it 
will not return the relationship cause you explicitly request a MATCH with 
a relationship direction. Instead try to MATCH with no direction. MATCH can 
ignore direction and just find the relationship. 
So in my example this worked just fine      

START n=node(9443), m=node(9440), p=node(1)
MATCH (p)-[r:MODIFY_TIME]-(m) 
DELETE r 
CREATE (n)-[s:MODIFY_TIME]->(m) 
SET m.changedDate = "13/01/14", m.changedTime = "10:00" 
RETURN s;


-- 
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/groups/opt_out.

Reply via email to