Query Engines
Custom

Custom

If you have complex query or authentication requirements, you may prefer to deploy your own query engine to benefit from your existing authentication or custom query functionality. To achieve this, you'll need to transform Vizzly formatted queries, into Vizzly formatted results.

Vizzly queries and results

To integrate your custom query engine with Vizzly, we require you to implement the async runQueries function.

We will call the runQueries with an array of Vizzly formatted queries and an abort signal (opens in a new tab), and expect either an array of Vizzly formatted results, or null indicating something went wrong.

Learn more about Vizzly results here, and more about Vizzly queries here.

Frontend implementation

The frontend implementation differs slightly from the self-hosted implementation, as it requires you to provide an async runQueries function.