遍历neo4j Rest api中的所有传出关系
我想遍历具有“所有”传出关系的所有节点。 但我能找到的所有示例都仅将方向与关系类型结合使用。
<代码>{... “关系”:[{ “方向”:“全部”, “类型”:“知道” }, { “方向”:“全部”, “类型”:“喜欢” }] ... }
我仍然尝试使用 "relationships" : "out"
但收到错误 500“无法将 String 转换为 Map”。 仅给数组指定方向是行不通的,并且会抛出错误 500“类型不能为空”。
是否可以不指定方向为“out”的所有类型的关系?
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 types of relations with direction "out"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,目前看来不可能。这绝对是未来版本中要添加的内容!同时,您可以编写自己的插件来执行此操作,例如: http:// /docs.neo4j.org/chunked/stable/server-plugins.html
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
为此创建了一个票证,请参阅 https://github.com/neo4j/community/issues/6< /a>
这是正确的吗?
created a ticket for this, see https://github.com/neo4j/community/issues/6
Is this correct?