开发者

Traverse all outgoing relationships in neo4j rest api

I want to traverse all nodes with "all" outgoing relationships. But all examples I can find use the direction only in combination with the relationship type.

{... "relationships" : [ { "direction" : "all", "type" : "knows" }, { "direction" : "all", "type" : "loves" } ] ... }

I still tried to use "relationships" : "out" but I get an error 500 "cannot cast String to Map". Only giving an array with a direction doesn't work and throws an error 500 "type cannot be null".

Is it possible to don't specify all type开发者_Python百科s of relations with direction "out"?


No that doesn't seem to be possible at the moment. It's definitely something to add in future versions! In the mean time you could write your own plugin to do that, like: http://docs.neo4j.org/chunked/stable/server-plugins.html


created a ticket for this, see https://github.com/neo4j/community/issues/6

Is this correct?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜