Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我的关系是这样的 i---follows----someone,someelse---follows----me ,密码查询是什么?问题是我无法弄清楚哪个是结束节点。
您的问题中没有指定方向,所以我希望我猜对了,但如果没有,请根据需要进行修改:
查找您关注的人:
START n=node(yourNodeID) MATCH n-[:follows]->person RETURN person;
查找关注您的人:
START n=node(yourNodeID) MATCH person-[:follows]->n RETURN person;
希望这可以帮助!