-
Hi 👋 This part of the READme is helpful for passing on api keys https://github.com/graphprotocol/graph-client#customize-network-calls sources:
- name: uniswapv2
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2
operationHeaders:
Authorization: Bearer {context.config.apiToken} However, querying the Subgraph Studio requires the ApiKey to be on the endpoint url per se (e.g. Mind explaining if this can be achieved using Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 23 comments 14 replies
-
You can use the same interpolation logic for sources:
- name: uniswapv2
handler:
graphql:
endpoint: https://gateway.thegraph.com/api/{env.API_KEY}/subgraphs/id/some_somgraph_id |
Beta Was this translation helpful? Give feedback.
-
Thx! Good job) |
Beta Was this translation helpful? Give feedback.
-
Very good! |
Beta Was this translation helpful? Give feedback.
-
Interesting thing! Thanks mate's! |
Beta Was this translation helpful? Give feedback.
-
nice, i didnt think that is so easy ! da best |
Beta Was this translation helpful? Give feedback.
-
nice work |
Beta Was this translation helpful? Give feedback.
-
nice work |
Beta Was this translation helpful? Give feedback.
-
good job thx |
Beta Was this translation helpful? Give feedback.
-
yes good |
Beta Was this translation helpful? Give feedback.
-
Awesome! |
Beta Was this translation helpful? Give feedback.
-
Nice job! |
Beta Was this translation helpful? Give feedback.
-
great job |
Beta Was this translation helpful? Give feedback.
-
Thank you for your job! |
Beta Was this translation helpful? Give feedback.
-
Hi all. I look here everyone wishes good luck. So success to everyone and diligence. |
Beta Was this translation helpful? Give feedback.
-
Thanks!!! |
Beta Was this translation helpful? Give feedback.
You can use the same interpolation logic for
endpoint
BUT keep on mind it still needs to introspect the schema first. So I'd recommend to use environment variables for this;