I’ve run into this problem as well.
But I can think of one way. It’s to customize a set of RESTful APIs: custom routes, custom controllers, and in the controllers you can use the strapi object.
strapi