簡體   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