My code has a Meteor collection myCol, each of its documents has a field named “action” with value myAction.
The code also has an object with name:value entries.
doc = {name1:value1, name2:value2,…}
I need to get all the documents with field ‘action’ = ‘myAction’, then from them get the document with field ‘name’ = name1, then update this documents to have a new field “value” and assign to it the value value1.
And do that for all the entries in the doc
I hope I explained it well
How can I do this please? Thanks