Currently to format/transform the output of a User Action resource query you have to create a Javascript Resource as a wrapper:
const new_ret = userActionResource.data
// modify new_ret here
return new_ret;
While not a big deal, you do now have to remember:
- changes are made in the wrapper and not in the query where it normally would be.
- use the wrapper results, not the query results. these are now in 2 locations instead of 1