We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I follow the instructions in the readme and specify an env var like this in .graphclientrc.yml:
sources: - name: farther handler: graphql: endpoint: https://api.studio.thegraph.com/query/{env.SUBGRAPH}/version/latest
and then start the process with the following script: SUBGRAPH=<subgraph-id> graphclient build
SUBGRAPH=<subgraph-id> graphclient build
...the variable doesn't get injected. Does anyone know why?
The text was updated successfully, but these errors were encountered:
Unless I'm misunderstanding something, thegraphclient build process has a bug. If I look at the generated code, I see:
graphclient build
... config: { endpoint: "https://api.studio.thegraph.com/query/{env.SUBGRAPH}/version/latest", }, ...
If I change it to this, it works:
... config: { endpoint: `https://api.studio.thegraph.com/query/${process.env.SUBGRAPH}/version/latest`, }, ...
Sorry, something went wrong.
for anyone else who lands here with the same problem, it works if you make .graphclientrc a javascript file, described here:
.graphclientrc
ardatan/graphql-mesh#5442 (comment)
No branches or pull requests
If I follow the instructions in the readme and specify an env var like this in .graphclientrc.yml:
and then start the process with the following script:
SUBGRAPH=<subgraph-id> graphclient build
...the variable doesn't get injected. Does anyone know why?
The text was updated successfully, but these errors were encountered: