nosql - Arangodb AQL UPDATE for internal field of object -


Looking at the following example documentation:

  {"timestamp": 1413543986, Message ":" message "," read ": {" 8 ": zero," 9 ": zero," 22 ": faucet}," type ":" 1014574149174 "}  

How can I update the value of a specific key in an object with the key "read" key? For example, update value for key "8":

  ... "8": 10, ...   

You can use either MERGE or MERGE_RECURSIVE as C: Update

  db._query ("FOR FILTER IN U._key == @ key" UPDATE "with UPDATE: MERGE_RECURSIVE (u.read, {'8': 10})} IN test ", {key:" 11611344050 "}  

merge the merge documents, where the latter value will overwrite the first look for details.


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -