You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我尝试了以下query
query = """
MATCH ()-[e:PlayerRelation]->()
SET e.relation_value = CASE WHEN e.relation_value > 100 THEN e.relation_value - 100 ELSE 0 END,
e.last_damping_time = now()
"""
我想实现的功能是将所有边的relation_value值减100(不足100的减到0),并把last_damping_time设置为当前时间。
我尝试了以下query
query = """
MATCH ()-[e:PlayerRelation]->()
SET e.relation_value = CASE WHEN e.relation_value > 100 THEN e.relation_value - 100 ELSE 0 END,
e.last_damping_time = now()
"""
但是出现了语法错误:SyntaxError: syntax error near ` MA'
我通过google和ChatGPT进行了搜索,也没有获得解决方案,我很奇怪是哪里出现了问题,nGQL是不支持批量修改边的属性么,有没有其他方法能做到。
The text was updated successfully, but these errors were encountered: