Fusion 5.10

    Managed JavaScript Query Stage

    This stage manipulates a query using a script from the blob store. The script must have the blob type file:js-query.

    Uploading a JavaScript blob

    In Fusion 5.8, JavaScript blobs must be uploaded using the Blob Store API, like this:

    curl -u USERNAME:PASSWORD -X PUT -H 'Content-Type: text/javascript' --data-binary @query-pipeline-js-stage.js http://FUSION_HOST:FUSION_PORT/api/apps/APP_NAME/blobs/query-pipeline-js-stage.js?resourceType=file:js-query

    Open the blob manager to verify that the new blob is present:

    Uploaded JavaScript blob in the blob manager

    Referencing a JavaScript blob

    Use any of the following formats for the ref/Script Reference configuration field:

    The examples above use query-pipeline-js-stage.js as the blob ID.

    Edit JavaScript

    For Fusion 5.4.x and later, select Edit in the Script Reference field to edit JavaScript directly in the Fusion UI.


    When entering configuration values in the UI, use unescaped characters, such as \t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.

    When using Fusion's REST API, the ID for this stage is:managed-js-query.

    Loading liquid template...

    Loading configuration schema...