we have a vertex which has a property of type int and when I try to update that property for that node like
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
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:
g.V().hasLabel("business").hasNot("authenticityScore").
property("authenticityScore",0).iterate()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.