Skip to end of metadata
Go to start of metadata

To allow more complex customizations, the Query Pipeline can be extended using JavaScript code. This allows implementing complex business logic that wouldn't be possible using simple configuration options. Using JavaScript allows developers to get complete control over the query execution, as well as other operations.


Being able to use JavaScript to extend the Query Pipeline is an experimental feature and is subject to change in the future.

Each query pipeline folder can contain a file named main.js that will be automatically loaded on startup, and also whenever the file changes. From this file, you can register callbacks that should be called at specific points during the execution process of a query. Within those callbacks it is possible to make changes that will affect how the query is executed, or change its results, etc.

The pages in this section describe the various aspects of extending the Query Pipeline using JavaScript.

  • No labels