graphqlgen icon indicating copy to clipboard operation
graphqlgen copied to clipboard

Using ENV variables

Open MathiasKandelborg opened this issue 6 years ago • 0 comments

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!

MathiasKandelborg avatar Dec 14 '18 12:12 MathiasKandelborg