considered I run below query in neo4j browser. It will shows some nodes in neo4j display panel and how many nodes and relationships in this query have.
I wish to get the "nodes count and relationship" count when i execute the query in python way.
que...
i want to add properties in array if a value not in the array.
CREATE (n:Test { my_array:['a', 'b', 'c']}) RETURN n;
Here i would like check my_array values and add 'new_value' like 'd' which is not in the list. Please help to add this attribute.
Hi @Cobra, Thanks for your point. I got a clue from your code and below code is working fine for me.
MATCH (n:Test)
SET n.my_array = case when 'd' IN n.my_array then n.my_array else n.my_array + 'd' end
RETURN n
But i tried the same by using 'NOT IN...