collection update not working
zenmatt opened this issue · 3 comments
zenmatt commented
Baffled by this code not working. I've tested it from the mongo console which works, I've console logged to ensure I am in the up/down functions, but the update has no effect.
version: 2,
name: 'Add blah to Collection',
up: function () {
Collection.update({}, {$set:{blah:""}}, {multi:true});
},
down: function () {
Collection.update({}, {$unset: {blah:1}}, {multi:true});
}
});```
zol commented
@zenmatt - hey Matt, I'm guessing you managed to resolve this issue. Let me know if now.
zenmatt commented
Apologies for not updating. I believe I resolved it, but cannot remember what the issue/fix was.
MattG561 commented
I am also facing this issue. Would be nice if the fix was posted within the thread.