2017-09-25 67 views
0

我想创建一个使用子查询设置属性的边缘。下面是我使用的查询:OrientDB使用select语句创建边缘来设置属性

create edge HAS from #57:0 to #80:3 set Type = (select from A where ID = 1) 

这给了我下面的错误:

OvalidationException: 
The field 'HAS.Type' has been declared as LINK but the 
value is not a record or a record-id 

请注意:类型为类型LINK的属性。 任何帮助表示赞赏谢谢!

回答

0

下面就是答案:

create edge HAS from #57:0 to #80:3 set Type = first((select from A where ID = 1))