Skip to content

How to query a subgraph created on the Subgraph Studio? #536

Locked Answered by ardatan
ubinatus asked this question in Q&A
Discussion options

You must be logged in to vote

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;

sources:
  - name: uniswapv2
    handler:
      graphql:
        endpoint: https://gateway.thegraph.com/api/{env.API_KEY}/subgraphs/id/some_somgraph_id

Replies: 23 comments 14 replies

Comment options

You must be logged in to vote
9 replies
@77Hitman77
Comment options

@SpaceDriver21
Comment options

@2Thief
Comment options

@kyky1122
Comment options

@Marcela0l
Comment options

Answer selected by ubinatus
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet