以下查询返回正确的 8 个团队。
询问
START league=node:League(name='September League')
MATCH (teams)-[:CONTESTED_IN]->league
RETURN teams.name
结果
teams.name
Kakatiya Kings
Broncos
Dunwoody Blues
DOE Spikers
Atlanta Spikers
Wild Claws
Alpharetta One
Camden Rockers
但是,当我将关卡添加为另一个起始节点时,虽然没有在任何地方使用它,但它会返回每个团队重复两次。知道为什么行为差异
询问
START league=node:League(name='September League'), level=node:Level(name='Quarterfinal')
MATCH (teams)-[:CONTESTED_IN]->league
RETURN teams.name
结果
teams.name
Kakatiya Kings
Broncos
Dunwoody Blues
DOE Spikers
Atlanta Spikers
Wild Claws
Alpharetta One
Camden Rockers
Kakatiya Kings
Broncos
Dunwoody Blues
DOE Spikers
Atlanta Spikers
Wild Claws
Alpharetta One
Camden Rockers