Neo4j - Cypher query not showing relationships
我正在编写一个查询,以使具有
我尝试了以下CQL:
1 2 3 4 5 6 | MATCH (r:recipe)-[]->() WHERE toInt(r.fibre) >= 30 AND toInt(r.calories) >= 1000 AND toInt(r.calories) <= 20000 RETURN r LIMIT 100 |
但是,它仅显示配方的节点,没有任何关系。
如果要显示关系,则应返回它们:
1 2 3 4 5 6 | MATCH (r:recipe)-[rel]->(other_node) WHERE toInt(r.fibre) >= 30 AND toInt(r.calories) >= 1000 AND toInt(r.calories) <= 20000 RETURN r, rel, other_node LIMIT 100 |