Query Interceptors
### Summary

Looking for advice.  

I have a custom query that's implemented as a SQL function - works great!  What I need to do now is convert the output of that function to a CSV file.  I need to increase the pagesize or paginate through results to build the file via some sort of interceptor or...

I was looking for recommendations on if this is possible via a plugin / hook.  I figure I can create a new custom graphql or rest endpoint that calls the API (itself for this) but wanted to see if there was a creative way to intercept these calls or use the generated stubs directly in Node.  Thx!

