The SQL editor should send its requests to Hasura API or elsewhere -- they deserve a separate repo. In this repo create a minimal express API that returns dummy data in response to a GET request from the SQL editor pane. When no API endpoint specified by an env variable at build time the SQL editor will call this dummy API and will load its response into its results table. Later on this dummy API can be used as a blueprint for the real API.
The SQL editor should send its requests to Hasura API or elsewhere -- they deserve a separate repo. In this repo create a minimal express API that returns dummy data in response to a GET request from the SQL editor pane. When no API endpoint specified by an env variable at build time the SQL editor will call this dummy API and will load its response into its results table. Later on this dummy API can be used as a blueprint for the real API.