How to provide env file in .graphqlrc.yml #4587
Answered
by
dotansimha
Salehjarad
asked this question in
General
-
I tride to use dotenv/config as requirement in the file but it's give me an error "could not be found" i have an "env" file in a config folder, but i did add ".env" i the root dir, but still not working :( .graphqlrc.yml projects:
require: dotenv/config
default:
schema: ./prisma/prisma.yml
extensions:
codegen:
generates:
./src/generated/prisma.graphql:
plugins:
- schema-ast
prisma.yml endpoint: ${env:PRISMA_ENDPOINT}
datamodel: datamodel.graphql
secret: ${env:PRISMA_SECRET}
|
Beta Was this translation helpful? Give feedback.
Answered by
dotansimha
Sep 29, 2020
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dotansimha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.graphqlrc.yml
is related tographql-config
, see: https://graphql-config.com/schema#environment-variables