neo4j - Cypher Query to find out my followers and users i follow? -


hi relations i---follows----someone, someelse---follows----me , cypher query ? problem im not able figure out end node .

there no directions specified in questions hope guessed them right, if not, modify needed:

find follow:

start n=node(yournodeid) match n-[:follows]->person return person; 

find follows you:

start n=node(yournodeid) match person-[:follows]->n return person; 

hope helps!


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -