Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OrientDB - How to update list entries in a record

Node class contains a property 'OutLinks' of type list. How to update list entries of a particular node instance I am using rest api. REST URI is http://x.x.x.x.:2480/command/xxx/sql Post body contains update Node set OutLinks = List(#12:1,#12:0) where @rid=#11:0 With this command, existing entries get replaced. Is there a way to insert/append/delete list

like image 509
PankajM Avatar asked Nov 28 '25 02:11

PankajM


1 Answers

Use the SQL UPDATE command, like:

update #11:0 add OutLinks = #12:0
update #11:0 remove OutLinks = #12:0
like image 103
Lvca Avatar answered Nov 30 '25 20:11

Lvca