Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Using ENV variables #345

Open
MathiasKandelborg opened this issue Dec 14, 2018 · 0 comments
Open

Using ENV variables #345

MathiasKandelborg opened this issue Dec 14, 2018 · 0 comments

Comments

@MathiasKandelborg
Copy link

Let have different configurations from the same file, based on injected variables!

Description

Well, it mostly says itself. Being able to use ENV in .graphqlgen.yml would make it quite a lot easier to change settings based on the current environment. This is useful for all kinds of situations, e.g. having separate but very alike schema files for development and production builds.

Additional context

There are several ways to accomplish this, I'd like it the most if I were able to define a file with -e | --env-file and specify variables with ${env:MY_VARIABLE}.

This is exactly similar to the prisma cli approach, you can get more info about that implementation here.

P.S If this is already possible, I can't find the info anywhere and I'll get incredibly embarrased haha. Have a nice day!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants