graphql / vscode-graphql

MIGRATED: VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
https://marketplace.visualstudio.com/items?itemName=Prisma.vscode-graphql
MIT License
557 stars 71 forks source link

Use environment variables #124

Closed rap2hpoutre closed 5 years ago

rap2hpoutre commented 5 years ago

Thank you for this plugin.

Is there a way to set then access env variables? Let's say I need to connect to github API, I don't want to write my github token in .graphqlconfig.yml. Is there a way to set then use env vars?

divyenduz commented 5 years ago

Thanks for raising this issue :)

Yes, it is possible and documented here: https://github.com/prisma/graphql-config/blob/master/specification.md#referencing-environment-variables

It is a part of the GraphQL config project.

Please feel free to raise a PR if you think that this information belongs to the README of this project as well?

If your issue is resolved, please close the issue, thanks.

rap2hpoutre commented 5 years ago

Thank you for your answer @divyenduz. It solved my problem! I don't think it has to be in the readme, so it's OK I close this issue!