DataStax Studio:更新节点的整数属性

问题描述 投票:1回答:1

我们有一个具有int类型的属性的顶点,当我尝试为该节点更新该属性时,例如

g.V().hasLabel("business").hasNot("authenticityScore").properties("authenticityScore",0).iterate()

此查询未更新记录。

从Datastax studio更新int值时,我需要处理任何类型转换吗?>

我们有一个顶点,它的属性类型为int,当我尝试为该节点更新该属性时,例如gV()。hasLabel(“ business”)。hasNot(“ authenticityScore”)。properties(“ authenticityScore”,0 )....

database datastax gremlin datastax-enterprise datastax-enterprise-graph
1个回答
3
投票

该语法不正确。 properties()步骤从图形元素(例如,顶点)获取属性列表,但是property()设置属性键和值,因此遍历应写为:

© www.soinside.com 2019 - 2024. All rights reserved.