我们有一个顶点,它有一个 int 类型的属性,当我尝试更新该节点的属性时,例如
g.V().hasLabel("business").hasNot("authenticityScore").properties("authenticityScore",0).iterate()
此查询不会更新记录。
从Datastax工作室更新int值时,我需要注意任何类型转换
该语法不正确。properties()
步骤从图形元素(例如顶点(获取属性列表,但property()
设置属性键和值,因此遍历应编写为:
g.V().hasLabel("business").hasNot("authenticityScore").
property("authenticityScore",0).iterate()