[英]OrientDB prevent EDGE creation when in_ is part of CONTENT JSON
When I create a record using the CONTENT form of the command, any entries which start with in_ get created as edges.当我使用命令的 CONTENT 形式创建记录时,任何以 in_ 开头的条目都会创建为边。 How do I prevent that?我该如何防止?
Example:例子:
CREATE CLASS Test EXTENDS V;
CREATE VERTEX Test CONTENT { "key": "val", "in_foo": "bar" };
SELECT FROM Test;
Result:结果:
{
"result": [
{
"@type": "d",
"@rid": "#13:0",
"@version": 1,
"@class": "Test",
"key": "val",
"in_foo": "bar"
}
],
"notification": "Query executed in 0.069 sec. Returned 1 record(s)"
}
When viewing things in Studio, that "in_foo" appears to be an EDGE (Shows up via an IN column, not as a regular property).在 Studio 中查看内容时,“in_foo”似乎是一个 EDGE(通过 IN 列显示,而不是常规属性)。
I'm trying to do this in schema-less form, but even if I add in_foo as a property, it still seems to be an EDGE.我正在尝试以无模式形式执行此操作,但即使我将 in_foo 添加为属性,它似乎仍然是一个 EDGE。
Am I missing something or how do I prevent this from happening and allow for properties to start with "in_"?我是否遗漏了什么或如何防止这种情况发生并允许属性以“in_”开头?
The field in_foo is correctly created as string but Studio wrongly group it as edge.字段in_foo已正确创建为字符串,但 Studio 错误地将其分组为边缘。 I've opened an issue, should be fixed in the next release.我已经打开了一个问题,应该在下一个版本中修复。
https://github.com/orientechnologies/orientdb-studio/issues/332 https://github.com/orientechnologies/orientdb-studio/issues/332
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.