I would like to be able to provide the fields I want to select as a query param. Something like this: http://localhost:3030/users?select[]=email. Than I could remove the fields in a after hook or better tell sequelize just to fetch this fields.
So far I tried the after hook wich does not work since the query params are passed to sequelize which causes an error (since there is no select field in the database).
Is there a recommend way to accomplish this feature ?