I upgraded my feathersjs version from 2.x.x to 3.9.0 Now I have a problem with hooks (after)
this is my query:
app.service('duties').patch(id, { $set: { status: 0 }}, {});
I have below code in my hook after:
var query = { "duties._id": result._id }
hook.app.service('parents').patch(null, { $set: { "duties.$.status": 0 } }, { query });
With previously version this was work fine, now I receive an error in console:
error: MethodNotAllowed: Can not patch multiple entries
How can I resolve my problem?