Hi,
I am trying to add a custom filter to an external mysql datasource. For this I am developing a custom plugin. So far I have tried using:
- ACL
- ctx.action.mergeParams
I am using an external datasources (using the data-source-external-mysql plugin).
As I found out, using (this.app.acl.use) does not get triggered by default for externally accessed collections, so this does not work.
Next I tried to use this.app.use function (as this DOES gets triggered when accessing the external datasource):
This does LOOK like it adds the filter, but the filter does not get executed no matter how easy of what filter I try.
Any pointers on how can I add a custom programmed filter to an external datasource?
Thanks!