OrientDB - How to update records in a record

The Node class contains the "OutLinks" property of the type list. How to update list entries of a specific node instance I am using rest api. REST URI http: // xxxx: 2480 / command / xxx / sql The message body contains update node set OutLinks = List (# 12: 1, # 12: 0) where @rid = # 11: 0 With this command, existing records will be replaced. Is there a way to insert / add / remove a list

+3


source to share


1 answer


Use SQL UPDATE command like:



update #11:0 add OutLinks = #12:0
update #11:0 remove OutLinks = #12:0

      

+1


source







All Articles