meteor-collection-hooks icon indicating copy to clipboard operation
meteor-collection-hooks copied to clipboard

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

Open gajuro opened this issue 7 years ago • 2 comments

//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}})

gajuro avatar Aug 10 '18 10:08 gajuro

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.

ericbirdsall avatar Dec 12 '18 22:12 ericbirdsall

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

Thanks for answering me.

gajuro avatar Dec 13 '18 07:12 gajuro