hi
i have 3 nodes with property name education
(node1)["education"] = "school1::uni1"
(node2)["education"] = "school3::uni1"
(node3)["education"] = "school3"
i want to count the unique string after splitting by delimiter "::"
so the final result would be like this
school1 1
school3 2
uni1 3
Okay, I missed that part. In that case it's enough to UNWIND the list from the split, then get the count of each entry. This won't collect the results, but it should work for you.
match (n:Node)
with n, split(n.education, '::') as eduList
unwind eduList as edu
return edu, count(edu) as count