1

I have the following two cypher calls that I'd like to combine into one;

start r=relationship:link("key:\"foo\" and value:\"bar\"") return r.guid

This returns a relationship that contains a guid that I need based on a key value pair (in this case key:foo and value:bar).

Lets assume r.guid above returns 12345.

I then need all the property relationships for the object in question based on the returned guid and a property type key;

start r=relationship:properties("to:\"12345\" and key:\"baz\"") return r

This returns several relationships which have the values I need, in this case all property types baz that belong to guid 12345.

How do I combine these two calls into one? I'm sure its simple but I'm stumbling..

4

1 回答 1

2

我得到的答案是,没有办法在 Cypher 查询的中间执行索引查找,或者使用您声明的变量来执行查找。

也许在 Cypher 的更高版本中,因为这种能力应该是标准的,尤其是在密集节点问题和建议的索引解决方案中。

于 2013-07-25T08:38:50.413 回答