Delete a relationship in neo4j 1.6 using cypher -


i think simple question not able find answer. have tried various ways delete relationship in neo4j 1.6 using cypher, getting error.

start n = node(1) match n-[r:knows]-m delete r;  

i want delete relationships of type knows , getting error -

==> syntaxexception: expected return clause ==> "start n = node(1) match n-[r:knows]-m delete r;  " 

even if give

start n = node(1) match n-[r:knows]-m delete r return count(r);  

it doesnt work.

note : above issue not seen on neo4j 1.8, have somehow run query on neo4j 1.6.

you won't able via cypher @ least using 1.6

mutating cypher available 1.8. might have use api delete.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -