问题
I have started learning cypher query for using graphical database. How should i get the values of all the nodes related to a super node. I am trying out the following query in console but its not working:
start a=node(2) match (a)-[:TYPE*]<-(node) return node;
node(2) is the super node. and the relation by which all other nodes are connected to a super node is TYPE. How should i correct my query.?
Error : SyntaxException: expected -
回答1:
You're representing the relationship wrong, try
start a=node(2) match (a)<-[:TYPE*]-(node) return node;
来源:https://stackoverflow.com/questions/20425157/to-get-all-the-nodes-connected-to-a-super-node-in-neo4j