【发布时间】:2020-07-09 13:51:00
【问题描述】:
我正在尝试使用选定的属性创建具有静态和动态值的顶点属性。代码如下:
g.V('%s').as('source')
.until(or(hasLabel('target').has('v', '1'),loops().is(10)))
.repeat(__.in())
.outE('e').as('edge')
.inV().as('u')
.select('source')
.property(single, 'v', '1')
.property(single, union(constant('p_'),select('u').id()), select('e').properties('r').value())
此查询是将边的属性复制为值,将顶点的 id 复制为前缀为“p_”的属性名称。副本有效,但属性名称无效,它只保存前缀'p_'。
对这种行为有什么想法吗?我正在使用 tinkerpop 3.4.3,与 Neptune 版本相同。
谢谢!
【问题讨论】:
标签: gremlin tinkerpop amazon-neptune