Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gajuro opened this issue Aug 10, 2018 · 2 comments
Open

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

gajuro opened this issue Aug 10, 2018 · 2 comments

Comments

@gajuro
Copy link

gajuro commented Aug 10, 2018

//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
Copy link

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
Copy link
Author

gajuro commented Dec 13, 2018

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

Thanks for answering me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants