Skip to content
Discussion options

You must be logged in to vote

Data sources are configured at runtime by adding them using the metadata API. There's no way of pointing Hasura GraphQL Engine to a configuration file at startup because the configuration is stored in the metadata database. However, you can use the CLI to apply a configuration to a running HGE instance.

As you've been using HASURA_GRAPHQL_DATABASE_URL, Hasura is configured the first time it starts up with that database as both the metadata DB and the source DB named "default". When you start it again later, the URL will be used for the metadata database only. HGE will then read the metadata, which already contains the same URL for the "default" source DB.

In order to add a new data source…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cmartin616
Comment options

Answer selected by paymog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants