<p dir="auto">I found this bug while trying to update a counter for the number of relationships on a node after deleting 1 or more relationships. The workaround is to count a second time.</p>
<p dir="auto">Example 1: <a href="http://console.neo4j.org/r/3jzrwy" rel="nofollow">http://console.neo4j.org/r/3jzrwy</a></p>
<p dir="auto">start n=node(0)<br>
match n-[r?:TEST]-&gt;()<br>
with n, COUNT(r) as c0  foreach(i in [1,2,3,4,5] :<br>
create unique n-[:TEST]-&gt;(m {id: i}))<br>
match n-[r?:TEST]-m<br>
delete r, m<br>
with n, c0<br>
match n-[r?:TEST]-&gt;()<br>
with n, c0, COUNT(r) as c1<br>
match n-[r?:TEST]-&gt;()<br>
return n, c0, c1, COUNT(r) as c2</p>
<p dir="auto">Example 2: <a href="http://console.neo4j.org/r/6t8v0p" rel="nofollow">http://console.neo4j.org/r/6t8v0p</a></p>
<p dir="auto">start n=node(0)<br>
match n-[r?:TEST]-&gt;()<br>
with n, COUNT(r) as c0  foreach(i in [1,2,3,4,5] :<br>
create unique n-[:TEST]-&gt;(m {id: i}))<br>
match n-[r?:TEST]-&gt;()<br>
with n, c0, COUNT(r) as c1<br>
match n-[r?:TEST]-&gt;m<br>
delete r, m<br>
with n, c0, c1, COUNT(r) as c2<br>
match n-[r?:TEST]-&gt;()<br>
return n, c0, c1, c2, COUNT(r) as c3</p>
<p dir="auto">Adding, editing and deleting properties of or to a node is not possible at the moment, although they are nicely displayed when clicking on a node in the graph visualization window of neo4js web browser</p>