olegabu / graphiql-explorer-sql

Graphiql with explorer and minimal sql editor
Apache License 2.0
1 stars 1 forks source link

Create a mock API for SQL editor #4

Closed olegabu closed 1 year ago

olegabu commented 1 year ago

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.