-
-
Notifications
You must be signed in to change notification settings - Fork 754
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
How to use $set in patch or update? #323
Comments
@patrickpereira, feathers-mongoose uses |
Yes, |
Thanks for the swift replies, I forgot to mention that I dont have the id, so I was putting in null instead in the update service. Furthermore it's a subdocument that I'm trying to find and update with $set. So far I had to manually require the mongoose model and I solved it like this:
Is there a better way to do this using the builtin services in feathers? |
I think this issue is somewhat related. Basically you want to be able to supply additional query options similar to how we handle it with sequelize. We have an open issue for that. In the mean time @patrickpereira your solution is totally fine. I'm going to close this as we can track progress against the open mongoose issue. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue with a link to this issue for related bugs. |
Hi Feathers team,
I've been trying to use $set in a update or a patch, but I can't seem to figure out how to use it. I'm using feathers with Mongoose.
Any help would be highly appreciated.
Best regards
Patrick
The text was updated successfully, but these errors were encountered: