Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable expansion is not applied to schemaPath #46

Closed
rwe opened this issue Dec 15, 2017 · 2 comments
Closed

Environment variable expansion is not applied to schemaPath #46

rwe opened this issue Dec 15, 2017 · 2 comments

Comments

@rwe
Copy link

rwe commented Dec 15, 2017

This prevents use-cases such as:

"projects": {
  "foo-service": {
    "schemaPath": "${env:FOO_SERVICE_SCHEMA_PATH}"
  }
}

Which is useful for sharing between local dev and CI environments.

@schickling
Copy link
Contributor

I agree, this should be possible. @erydo would you mind creating a PR for this including some test cases?

@kamilkisiela kamilkisiela mentioned this issue Oct 16, 2019
23 tasks
@kamilkisiela kamilkisiela added this to the v3.0.0 milestone Oct 24, 2019
@kamilkisiela
Copy link
Owner

Hi there, it's The Guild :) We're working on a new version of GraphQL Config. The goal is to make it platform agnostic, flexible enough to use with any tool and framework, reduce the bundle size and a lot more and what's even more important, bring it back to life and keep maintaining.

New changes #162 are already merged into master and v3.0.0-alpha.13 is released.

With new GraphQL Config you're able to use environment variables like this:

schema: ${MY_SCHEMA:schema.graphql}

Where MY_SCHEMA is the value coming from process.env.MY_SCHEMA and schema.graphql is a default value

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

No branches or pull requests

3 participants