Skip to content
Discussion options

You must be logged in to vote

Hasura does not run in the same process or in the same machine as your database, so they do not share environments.
The closest you can do: set the env var as part of the session, (either via JWT or webhook auth mode), and access them in SQL with the rest of your session: https://hasura.io/docs/latest/graphql/core/guides/auditing-tables/

This only works for mutations. Queries can access the same variable when executing custom SQL functions that receive the session as an argument.

I would strongly advise against any of the above for your use case

I understand your use case is setting these environment variables on server start, but the question is which server?
Your hasura instance does no…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adas98012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants