I solved the issue with the result I wanted.
I shared the answer to my stack question above:
I do only hope that this solution will work also on newer strapi versions
and the typescript support of strapi improves for the backend development as I mentioned in stack.