Meteor-Community-Packages / meteor-collection-hooks

Meteor Collection Hooks
https://atmospherejs.com/matb33/collection-hooks
MIT License
658 stars 90 forks source link

Direct update works if we query by the _id, not otherwise #245

Open gajuro opened 6 years ago

gajuro commented 6 years ago
//This works
People.direct.update(person._id, {$set: {name: user.profile.name}})

//This doesn't do anything
People.direct.update({email: email}, {$set: {name: user.profile.name}})
ericbirdsall commented 5 years ago

Is this on the client or the server? Meteor doesn't let the client (untrusted code) update documents where the selector isn't by ID.

gajuro commented 5 years ago

I am not working on that project anymore. I am 99% convinced it was server side.

Thanks for answering me.