简体   繁体   English

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

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

we have a vertex which has a property of type int and when I try to update that property for that node like我们有一个具有 int 类型属性的顶点,当我尝试为该节点更新该属性时,例如

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

This query is not updating the record.此查询不更新记录。

Is there any typecast I need to take care of while updating an int value from Datastax studio从 Datastax Studio 更新 int 值时是否需要处理任何类型转换

That syntax is not correct.该语法不正确。 The properties() step gets a list of properties from the graph element (eg Vertex), but property() sets a property key and value, therefore your traversal should be written as: 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