Use JavaScript Transformer in shared Query

  • Goal: I would like to use a javascript transformer after my SQL query, which works for one app but when I share the query I do not have the option to transform the result.

  • Details: The part I would actually like to be shared between my apps is how I deal with the output of my query. Therefore I apply an extensive javascript transformer, that I do not want to add to each app specifically but rather have globally in my shared query.
    Is there any way to do this? or a workaround?

Thank you.

2 Likes

Hey @rebeccaWalter - Welcome to the community! :slightly_smiling_face:

Although this may not completely solve the issue you're trying to solve, have you seen the ability to preload Javascript at the organisation level? You can do this by clicking your profile in the top right -> Settings -> Advanced Settings. From within an app, you could then call your transformer. This is still an additional step, but I believe less overhead than what you are doing now?

Also, if you have multiple apps under the same umbrella, maybe our new multi-page app feature could be useful for you? With this, you can write global Javascript that can be accessed through any page in the larger app.

Having said all this, I have also submitted a feature request on behalf of yourselves, to add Javascript queries to the query library.

Hope this helps!

1 Like

+1