strapi-community / strapi-plugin-transformer

A plugin for Strapi Headless CMS that provides the ability to transform the API request or response.
https://market.strapi.io/plugins/strapi-plugin-transformer
MIT License
140 stars 22 forks source link

Add option to remove 'data' keys from relations #15

Closed mickaeloak closed 2 years ago

mickaeloak commented 2 years ago

Thanks for providing this plugin! As it was a need for us I forked it and added an option to remove the unnecessary "data" keys everywhere. I know it might be a problem in the future as I believe I read somewhere the Strapi team wants to put "meta" information inside relations. Hopefully they (you?) will listen to the community and provide an option to disable these things. I'm on a short timeline so I went pretty fast here, there is some redundancy in the tests file, feel free to adjust/comment. You're free to take whatever you want or nothing from this :)

ComfortablyCoding commented 2 years ago

Hello @mickaeloak ,

Appreciate the PR but I will be closing it in favour of #16