objection.js
objection.js copied to clipboard
filters/modify on join table of m2m relations
addressing https://github.com/Vincit/objection.js/issues/1356
I am not sure if I tackled it from the right direction... and I haven't wrote any tests, but hopefully you could give me some hints what should I do to make this PR complete
Coverage increased (+0.002%) to 97.175% when pulling 094f8abcda9a95055f199b79f918ebbe9e0cc84d on ovos:m2m-join-table-modify into 5aa7dd0f2d7e6380388c8df8d118a8d3fcff3fc0 on Vincit:master.
@koskimas would you consider this for objection v3.0? I could try to rebase and add tests, but not sure if I could make it on time, depends when you would like to move out of v3 alpha stage
@koskimas I've added some tests and adjusted docs.
@kibertoad would you mind to take a look at this PR and review it while you are at it, please? It's the oldest among currently open PRs. Hopefully it has matured enough ;)
LGTM, thanks @falkenhawk!
As for the OnErrorOperation bit, I think it's not wrong to leave this in. Merging.
The new API is not doing anything and both filter and modify are ignored.