Neo4j:仅查找一个标记的关系
我正在尝试查找特定节点的所有子节点Neo4j:仅查找一个标记的关系,neo4j,cypher,Neo4j,Cypher,我正在尝试查找特定节点的所有子节点 match(t:TAG)<-[children:CHILD_OF]-(subtag:TAG) where t.name="brand" return t.name, subtag.name 匹配(t:TAG)试试这个 match(t:TAG) where t.name="brand" with t Match (t)<-[children:CHILD_OF]-(subtag:TAG) return t.name, subtag.name 匹
match(t:TAG)<-[children:CHILD_OF]-(subtag:TAG) where t.name="brand" return t.name, subtag.name
匹配(t:TAG)试试这个
match(t:TAG) where t.name="brand" with t
Match (t)<-[children:CHILD_OF]-(subtag:TAG) return t.name, subtag.name
匹配(t:TAG),其中t.name=“brand”与t
Match(t)令人惊讶的是,我的查询是fasterIt,这可能是因为您的数据集(您有少量的标记,neo4j优化了查询)、缓存。如果不是,我觉得很奇怪,请确保您在名称上有索引。可能就是这样。如何检查我是否有索引?请在此处查找索引信息