我遇到一个以下细节的顶点:
注:此处为HTML格式,不做任何修改。
{
"requestId": "6ce01f3b-f623-41f6-bb03-dd56014e0701",
"status":
{
"message": "",
"code": 200,
"attributes": { }
},
"result":
{
"data":
[
{
"id": 4192,
"label": "person",
"type": "vertex",
"properties":
{
"name":
[
{
"id": "170-38g-sl",
"value": "marko2"
}
],
"age":
[
{
"id": "1l8-38g-28lh",
"value": 29
}
]
}
}
],
"meta": { }
}
}
我想更新顶点名称:
我尝试了以下查询:
g.V(4192).setProperty('name','William')
但它没有更新,而是出现了错误。
{
"message": "Error encountered evaluating script: g.V(4192).setProperty('name','William')"
}
g.V(4192).property('name','William2').property('age',30)
命令,将顶点ID为4192的节点的名称属性改为"William2",年龄属性改为30。 - Jason Plurad