OrientDB Query by edge property

旧城冷巷雨未停 提交于 2019-12-02 04:44:10

You can filter on edge's property:

SELECT expand(both('Friend').outE('goingTo')[going_date='2015-01-01'].inV()) FROM #12:11

Devin D

Little late but since this was a high result for my google search, thought I'd link the answer I found on another question.

My use case, and I believe a wide category of use cases leaning on recursion, has to store data in edge properties.

For OP, it should be

SELECT expand(both('Friend').out('goingTo')) FROM #12:11 
WHERE out_goingTo[0].going_date = '2015-01-01'

This seems like a case where you'd have 1-many "going to" edges, so it could be

WHERE out_goingTo[0-100] for a range or

WHERE out_goingTo[0,5,10] for a set.

HTH!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!