繁体   English   中英

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

[英]DataStax Studio : Update an integer property of node

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

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

此查询不更新记录。

从 Datastax Studio 更新 int 值时是否需要处理任何类型转换

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM