add methodQuery parameter for patch and update - #181
Conversation
|
There was a recent addition to feathers-sequelize that handled this problem by creating a better |
|
The problem is similar to that tackled in feathers-sequelize. The |
Ok, I'm going to change this PR along these lines then. |
|
@sechel any updates on this? Experiencing this with SoftDelete as well. |
|
@ecirish I believe this was fixed with feathersjs-ecosystem/feathers-mongoose#330 Which softDelete are you using? |
|
@DaddyWarbucks I'm using the latest SoftDelete from feathers-hooks-common, but I'm not using Mongoose. Just |
|
Oh! Whoops, my bad! I got the adapter repos crossed. From the looks of https://github.com/feathersjs-ecosystem/feathers-mongodb/blob/6bf168269f7cbb9f329cc8a530d5ee7677b645f7/lib/index.js#L215 this is still a bug here in this adapter. I will try to make some time tomorrow to fix this. I fixed similar issues in Mongoose and Sequelize, so this should be pretty straightforward. |
|
@DaddyWarbucks Wow. Thanks for the prompt reply and the even more impressive prompt action! |
I also had issues with |
|
Thank you for the pull request! This has now been fixed via #188 |
I have come across this twice in the last two weeks and decided to draft a solution. When I update a field that is included in the query of an
updateorpatchcall, then the subsequentgetwill yield anot founderror. This is due to the fact that the query is included in both theupdate/patchcall and the subsequentget.In this PR i propose to add a separate parameter field
methodQuerythat is only used in the primary call toupdateManyorreplaceOneand not used in the subsequentgetcall.See also
feathersjs-ecosystem/feathers-hooks-common#584