2
我正嘗試使用gremlin scala更新傳出邊緣(outE)的邊緣屬性值。在titan + cassandra中使用gremlin scala更新邊緣屬性值DB
環境: 泰坦+卡桑德拉
graph.V().outE().properties("Id","100").iterate()
以上不能正常工作。是否有任何其他方式來更新邊緣屬性值。
我正嘗試使用gremlin scala更新傳出邊緣(outE)的邊緣屬性值。在titan + cassandra中使用gremlin scala更新邊緣屬性值DB
環境: 泰坦+卡桑德拉
graph.V().outE().properties("Id","100").iterate()
以上不能正常工作。是否有任何其他方式來更新邊緣屬性值。
您有一個小錯誤。你的遍歷正在做一個查詢。要將屬性添加到所有邊緣,請執行以下操作:
graph.traversal().V().outE().property("Id","100").iterate();
property
變異。 properties
查找。更多信息here
。謝謝。現在工作 – Gopi