[英]What _targetVertexFields_ parameter of edge transformer in Orientdb do?
The documentation says Defines the field on which to set the target vertex.
文档说
Defines the field on which to set the target vertex.
but what it means it is not clear for me as there is already the joinFieldName
and lookup
combination to select the target vertex. 但是这对我来说尚不清楚,因为已经有
joinFieldName
和lookup
组合来选择目标顶点。
joinFieldName
defines the field containing the join value, the type is a String and is mandatory. joinFieldName
定义包含joinFieldName
值的字段,类型是String,是必需的。 lookup
defines the index on which to execute the lookup or a SELECT, the type is a String and is mandatory. lookup
定义要在其上执行查找或SELECT的索引,类型是String,是必需的。 targetVertexFields
defines the field on which to set the target vertex, the type is Object and is not mandatory. targetVertexFields
定义在其上设置目标顶点的字段,类型为Object,不是必需的。 The example below creates an edge from the current vertex, with the class set to Parent, to all vertices returned by the lookup on the D.inode index with the value contained in the filed inode_parent of the input's vertex: 下面的示例创建从当前顶点(将类设置为Parent)到D.inode索引的查找返回的所有顶点的一条边,该点的值包含在输入顶点的字段inode_parent中:
{ "edge":
{ "class": "Parent",
"joinFieldName": "inode_parent",
"lookup":"D.inode",
"unresolvedLinkAction": "CREATE"
}
}
Hope it helps 希望能帮助到你
Regards 问候
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.