在OrientDB v3.0.3中使用upsert更新边缘

时间:2018-07-17 00:05:30

标签: orientdb

我正在尝试实现v3.0.3中可用的这一新的upsert edge功能,但出现异常com.orientechnologies.orient.core.exception.OCommandExecutionException: Error updating edge: 'out' is not a vertex. 我创建了一个类Person,其中Name字段作为唯一索引,而Friend的字段id作为唯一索引。 发出命令:UPDATE EDGE Friend SET in = (SELECT FROM Person WHERE Name = 'name1' ) , out = (SELECT FROM Person where Name = 'name2') , id = 'f1' UPSERT WHERE id = 'f1'。如果我使用正确,请告诉我。谢谢!

0 个答案:

没有答案