To update properties of a node using actions (or commands), you could do something like this:
'stock items': collection ['item'] {
'item': text
'stock': number 'units'
'mutate': action {
'mutation': number 'units'
} => update (
'stock' = sum (
.'stock',
@ .'mutation'
)
)
}
I hope this answers your question, because “update the value of a node” is unclear to me. Properties of a node can be updated. E.g. texts and numbers, but not the node itself.