meteor-collection-hooks
meteor-collection-hooks copied to clipboard
Direct update works if we query by the _id, not otherwise
//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}})
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.
I am not working on that project anymore. I am 99% convinced it was server side.
Thanks for answering me.