| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- -- ============================================================
- -- Cypher match 查询测试
- -- ============================================================
- -- 1. match 所有节点 (已知服务端单节点cypher nil pointer bug)
- match (n:test_graph) return n.g_name, n.g_type, n.g_value
- /**
- onerror(continue)
- output()
- **/
- ;
- -- 2. match 带属性过滤 (已知服务端单节点cypher nil pointer bug)
- match (n:test_graph) where n.g_value > 25 return n.g_name, n.g_type, n.g_value
- /**
- onerror(continue)
- output()
- **/
- ;
- -- 3. match 多条件 (已知服务端单节点cypher nil pointer bug)
- match (n:test_graph) where n.g_type='type_a' and n.g_value>=10 return n.g_name, n.g_type, n.g_value
- /**
- onerror(continue)
- output()
- **/
- ;
- -- 4. match 关系路径
- match (a:test_graph) -[:connect]-> (b:test_graph) return a, b
- /**
- output()
- **/
- ;
- -- 5. match 带关系方向
- match (a:test_graph where a.g_name='node_a') -[:connect]-> (b:test_graph) return a, b
- /**
- output()
- **/
- ;
- -- 6. match 无关系节点 (已知服务端单节点cypher nil pointer bug)
- match (n:test_graph) where n.g_name='node_e' return n.g_name, n.g_type, n.g_value
- /**
- onerror(continue)
- output()
- **/
- ;
- -- 7. match 返回特定字段 (已知服务端单节点cypher nil pointer bug)
- match (n:test_graph) return n.g_name, n.g_value
- /**
- onerror(continue)
- output()
- **/
- ;
|