Hi, working with context (context,flow or global) we directly access and modify them unless we don't use RED.util.cloneMessage. So if for instance we have
flow.set("mytest",{ "A":[1,2,3], "B":{"value1":"B1","value2":"B2"},"C":[10,20,30]})
doing
var mynewtest = flow.get("mytest")
mynewtest.C = ["a","b","c"]
it results in
flow.get("mytest") = { "A":[1,2,3], "B":{"value1":"B1","value2":"B2"},"C":["a","b","c"]}
so mynewtest modify context mytest as expected
But if we do
var mynewtest = flow.get("mytest.C")
mynewtest = ["a","b","c"]
it results in
flow.get("mytest") = { "A":[1,2,3], "B":{"value1":"B1","value2":"B2"},"C":[10,20,30]})
instead of
flow.get("mytest") = { "A":[1,2,3], "B":{"value1":"B1","value2":"B2"},"C":["a","b","c"]}
In this case mynewtest doesn't modify context mytest. Is that correct?