简体   繁体   English

不再能够查询OrientDB中的边缘

[英]Can't query edges in OrientDB anymore

When I try to query: 当我尝试查询时:

select out('teaches') from Course

OrientDB returns empty lists, while the edges that I'm trying to find do exist. OrientDB返回空列表,而我要查找的边确实存在。

Also, in the graph editor, the edges options won't show up anymore: 另外,在图形编辑器中,edges选项将不再显示:

Normally, I can choose edges by hovering over the arrows. 通常,我可以将鼠标悬停在箭头上来选择边缘。 Now it doesn't do anything. 现在它什么也没做。

I've noticed that this started to happen when I started indexing my edges with a unique hash key. 我注意到,当我开始使用唯一的哈希键索引边缘时,这种情况开始发生。 Does this have anything to do with it? 这有关系吗?

I'm using OrientDB version 2.0.5. 我正在使用OrientDB版本2.0.5。

Apparently, it didn't work because I was using an UPDATE command. 显然,它没有用,因为我正在使用UPDATE命令。

UPDATE teaches SET in = #12:1, out = #13:1 UPSERT WHERE in = #12:1 AND out = #13:1 will create the edge (record) if it does not yet exist, but you won't be able to query it. UPDATE teaches SET in = #12:1, out = #13:1 UPSERT WHERE in = #12:1 AND out = #13:1将创建边(记录)(如果尚不存在),但是您不会能够查询它。

CREATE EDGE teaches from #13:1 to #12:1 does work and you will be able to query it. CREATE EDGE teaches from #13:1 to #12:1确实可行,您将能够对其进行查询。

Not sure whether this can be considered a bug... 不确定是否可以将其视为错误...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM