In a neo4j database with nodes, linked by the 'ARTICLE_OF'
relationship, how do I find all nodes with this relationship? Direction doesn't matter.
I tried a possible solution from here, but it seems outdated. I swapped SOME_RELATIONSHIP
with my ARTICLE_OF
, but it didn't work.
start n=node(*)
match n-[:ARTICLE_OF]-()
return distinct n
When I run it I get the following error:
START is deprecated, use: `MATCH (n)` instead.
(line 1, column 1 (offset: 0))
"start n=node(*)"
^
I tried swapping start
with match
, but that only resulted in more errors. Let me know if you want to see those as well, but I think someone with experience might immediately see what I'm doing wrong.