Can we UPSERT an EDGE in orientdb?

后端 未结 2 1655
你的背包
你的背包 2021-01-14 15:56

Is it possible to get an example to upsert an edge in orientdb. IF it does not exist is there a way to check if the edge exist, if it does then just update the edge else cre

2条回答
  •  我在风中等你
    2021-01-14 16:21

    via SQL you can use the basic UPDATE command

    update written_by SET out = #9:2, in = #16:43, prop="gianni" UPSERT WHERE out = #9:2 and in = #16:43
    

    http://orientdb.com/docs/last/SQL-Update.html

提交回复
热议问题