Vahid Kharazi
Vahid Kharazi

Reputation: 6033

a Cypher with neo4j

please be gentleman!I am begginer in neo4j database. I know this "START a=node({self}) MATCH a-[:FOLLOW]->(b) RETURN b" return all following of {self} node but i want a cypher query that return all followers of a {self}

Upvotes: 0

Views: 47

Answers (1)

Aravind Yarram
Aravind Yarram

Reputation: 80166

Just reverse the direction of the relationship as shown below which indicates all b's that have follow relationship with {self}

START a=node({self}) MATCH a<-[:FOLLOW]-(b) RETURN b

Upvotes: 1

Related Questions