Suppose we have
var o = {a:1}
var modifier = {$set: {a:2}}
Is there some Meteor API to apply the modifier
directly to o
?
Suppose we have
var o = {a:1}
var modifier = {$set: {a:2}}
Is there some Meteor API to apply the modifier
directly to o
?
I found mupdate on npm, which does the job to some degree: it doesn’t have all the possible operators.
Yep, that’s the one LocalCollection._modify